ServerXMLHTTPRequest.Open

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > MSXML2 > MSXML2 Module Classes > ServerXMLHTTPRequest >

ServerXMLHTTPRequest.Open

 

Description

 
Initializes a request and specifies the method, URL, and authentication information for the request.

 

Syntax

 

<ServerXMLHTTPRequest>.Open(bstrMethod, bstrUrl [, bAsync [, bstrUser, bstrPassword]])

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

bstrMethod

String

No

The HTTP method used to open the connection, such as PUT or PROPFIND. For ServerXMLHTTP, this parameter is case-sensitive and the method name must be entered in all upper-case letters.

bstrUrl

String

No

The requested URL. This can be either an absolute URL, such as "http://Myserver/Mypath/Myfile.asp", or a relative URL, such as "../MyPath/MyFile.asp".

bAsync

Number

Yes

Boolean. Indicator as to whether the call is asynchronous. The default is False (the call does not return immediately).

bstrUser

String

Yes

The name of the user for authentication.

bstrPassword

String

Yes

The password for authentication. This parameter is ignored if the user parameter is Null or missing.

 

 

Remarks

 

After calling this method you must call the ServerXMLHTTPRequest.Send method to send the request and data (if any) to the server. Each send method must have a corresponding open method.

 

Restrictions

 

See also

 

Examples