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("MSXML 2.ServerXM LHTTP")
xmlhttp.Open "POST","http://localhost/Receiver.asp",false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-ur lencoded"
xmlhttp.send DataToSend
Response.ContentType = "text/xml"
Response.Write xmlhttp.responsexml.xml
Set xmlhttp = nothing
%>
Does anyone know why this is happening?
Thanks
<%@ Language=vbScript%>
<%
DataToSend = "id=1"
dim xmlhttp
set xmlhttp = server.Createobject("MSXML
xmlhttp.Open "POST","http://localhost/Receiver.asp",false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-ur
xmlhttp.send DataToSend
Response.ContentType = "text/xml"
Response.Write xmlhttp.responsexml.xml
Set xmlhttp = nothing
%>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks