Link to home
Start Free TrialLog in
Avatar of garyz31
garyz31

asked on

msxml.serverxmlhttp not submitting form data

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

%>
ASKER CERTIFIED SOLUTION
Avatar of Göran Andersson
Göran Andersson
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of garyz31
garyz31

ASKER

You were correct.  I took a closer look at the receiving end, and the error was there.

thanks