?
Solved

msxml.serverxmlhttp not submitting form data

Posted on 2002-06-17
2
Medium Priority
?
384 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 400 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

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…
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/…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

765 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