setProxyCredentials Method (ServerXMLHTTP/IServerXMLHTTPRequest)

MSXML 5.0 SDK

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

setProxyCredentials Method (ServerXMLHTTP/IServerXMLHTTPRequest)

Specify proxy authentication credentials.

[Script]

Script Syntax

oSrvXMLHTTPRequest.setProxyCredentials(username, password);

Parameters

username
The name of the user to be authenticated.
password
The password for the user to be authenticated.
[Visual Basic]

Visual Basic Syntax

oSrvXMLHTTPRequest.setProxyCredentials(username, password)

Parameters

username
The name of the user to be authenticated.
password
The password for the user to be authenticated.
[C/C++]

C/C++ Syntax

HRESULT setProxyCredentials(
    BSTR bstrUserName,
    BSTR bstrPassword);

Parameters

bstrUserName [in]
The name of the user to be authenticated.
bstrPassword [in]
The password for the user to be authenticated.

C/C++ Return Values

S_OK
Value returned if successful.
E_FAIL
Value returned if name or value is invalid.

To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

setProxy Method

Applies to: IServerXMLHTTPRequest /ServerXMLHTTP Members