Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Encoding Problems with ServerXMLHTTP40.Send

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 12/1/2004 2:40:00 PM

stefan rieger wrote:

> using Send() Method of ServerXMLHTTP40
> have to post login information plus xml-document concatenated to a
> server; 

I think you can send the login information in the query string in the 
open call e.g.
   var httpRequest = Server.CreateObject('Msxml2.ServerXMLHTTP.4.0');
   httpRequest.open('POST', 
'whatever.asp?userid=user&password=somepassword', false);
   httpRequest.send(xmlDocument);
Of course if you use some authentication on the server then the proper 
way is to simply pass the login data in the open call e.g.
   httpRequest.open('POST', 'whatever.asp', false, 'userid', 
'somepassword');

If you really need to HTTP POST both the login data and the XML in the 
body of the request then I think the XMLHTTP object of MSXML doesn't 
support that, the proper way would then be a multipart/form-data HTTP 
request but I don't think you can construct that using the send method.


-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent