Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Encoding Problems with ServerXMLHTTP40.Send [Thread Next] Re: Encoding Problems with ServerXMLHTTP40.SendTo: 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/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
