Initializes an Msxml2.XMLHTTP request and specifies the method, URL, and authentication information for the request.
oXMLHttpRequest.open(method, url, async, user, password)
The values of the request headers, request body, response headers, and response body must be cleared before calling this method.
After calling this method, you must call send to send the request and data (if any) to the server.
The following JScript example creates an HttpRequest object, and then uses the open method to synchronously open an ASP page. It then posts an XML document to an ASP page, which uses the loadXML method to load it.
var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); xmlHTTP.open("http://myserver/save.asp", false); xmlHTTP.send(xmlDoc) <% xmlDoc.loadXML(Request); %>
Applies To: XMLHttpRequest Object