open - method of the HttpRequest object
Description:
Sets the method, URL address and authentication information for the requested data transfer.
Syntax:
Object open(String method, String url, [Boolean async], [String user], [String password])
Parameters:
method | (String) Data transfer method
POST - Sending data from the client to the server
GET - Receiving data from server
PUT - Sending data from the client to the server |
url | (String) Data source valid URL address |
async | [optional] (Boolean) Data transfer type asynchronous/synchronous (true = asynchronous) |
user | [optional] (String) Authentication by name |
password | [optional] (String) Authentication by password |
---|
Example1:
JavaScriptVBScriptSelect and copy to clipboard
var oReq;
oReq = Pm.AxGetObject("new", "MSXML2.XMLHTTP.6.0");
oReq.open("GET", "http://servername/test", false);
Dim oReq
Set oReq = CreateObject("MSXML2.XMLHTTP.6.0")
oReq.open "GET", "http://servername/test", false