Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xmlhttp obj post op

Status
Not open for further replies.

OMAR2000

Programmer
Feb 12, 2001
1
US
when using the xmlhttp object under the MSXML DOM implementation how do you POST an XML document in a way which emulates a standard HTML 'submit' operation ?

I've got a CGI script which we've been posting entry info to using the JS submit() method associated with a form element. Now we'd like to pass this script a simple XML doc. The script doesn't provide a response.


the javascript I've tried is..

var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("POST"," true);
xmlhttp.send(substr);

(ignore the errant semicolons , they're being imposed by the list )

this doesn't work , how does the xmlhttp post method differ from a standard POST. I'm assuming there's an element of the http header which is different but am not sure how to affect this .

any advice ?

thanks
David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top