Using the ServerXMLHTTP Security Options

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - XML Reference

Using the ServerXMLHTTP Security Options

The bstrUser and bstrPassword parameters of the open method of ServerXMLHTTP allow users to log onto Web servers secured with basic authentication. Both the bstrUser and bstrPassword parameters are sent in clear text (data that is transmitted as clearly readable text characters).

The following example demonstrates how to use the optional bstrUser and bstrPassword parameters of the open method of ServerXMLHTTP to retrieve an XML document from a Web server secured with basic authentication.

Example

<%@language=Jscript%>
<%
   var objSrvHTTP;
   objSrvHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP.5.0");
   objSrvHTTP.open ("GET","http://someotherserver/secure.asp",false, _
                       "testuser", "testpassword";
   objSrvHTTP.send ();
   Response.ContentType = "text/xml";
   Response.Write (objSrvHTTP.responseXML.xml);
%>