Solved

msxml.serverxmlhttp not submitting form data

Posted on 2002-06-17
2
379 Views
Last Modified: 2008-02-01
I'm attempting to use the msxml.serverxmlhttp component to submit form data from one server to another using the method outlined below.  The only problem is that the receiving asp doesn't see the form data.  It behaves as if i've submitted an empty form; no errors, just no data.

Does anyone know why this is happening?

Thanks

<%@ Language=vbScript%>
<%
     DataToSend = "id=1"
     dim xmlhttp
     set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP")
     xmlhttp.Open "POST","http://localhost/Receiver.asp",false
     xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
     xmlhttp.send DataToSend
     Response.ContentType = "text/xml"
     Response.Write xmlhttp.responsexml.xml
        Set xmlhttp = nothing

%>
0
Comment
Question by:garyz31
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
Göran Andersson earned 100 total points
ID: 7091272
I made a simple test page:

<%=Request.Form%>

Then I changed this (as I don't get xml back):

'Response.ContentType = "text/xml"
Response.Write xmlhttp.ResponseText 'responsexml.xml

...and it works perfectly.

There is nothing wrong in the way you are sending your data. The logical conclusion must be that there is something wrong in the way you recieve the form data. May we see the code?
0
 
LVL 1

Author Comment

by:garyz31
ID: 7091565
You were correct.  I took a closer look at the receiving end, and the error was there.

thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
document.getElementById not worj with 2 IDs with the same name 10 64
Issues with Insert statement 12 31
html Uncheck Checkbox 2 38
Record locking on classic ASP 3 64
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question