Solved

msxml.serverxmlhttp not submitting form data

Posted on 2002-06-17
2
372 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
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now