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
Solved

msxml.serverxmlhttp not submitting form data

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
If condition on Html with Asp 11 27
Asp in server side with Mssql Server 7 4 27
CREATE DATABASE 3 28
IIS 7 and executing pages using localhost 16 12
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

809 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