setProxy Method (ServerXMLHTTP/IServerXMLHTTPRequest)
Specify proxy configuration.
Script Syntax
oSrvXMLHTTPRequest.setProxy(proxySetting, varProxyServer, varBypassList);
Parameters
- proxySetting
- The proxy configuration whose value is to be set. For a list of available settings and a description of how to use those settings, see Remarks.
- varProxyServer
- The name of a proxy server or a list of proxy server names.
- varBypassList
- The list of locally known host names or IP addresses for which you want to permit bypass of the proxy server.
Example
No examples available at this time.
Visual Basic Syntax
oSrvXMLHTTPRequest.setProxy(proxySetting, varProxyServer, varBypassList)
Parameters
- proxySetting
- The proxy configuration whose value is to be set. For a list of available settings and a description of how to use those settings, see Remarks.
- varProxyServer
- The name of a proxy server or a list of proxy server names.
- varBypassList
- The list of locally known host names or IP addresses for which you want to permit bypass of the proxy server.
C/C++ Syntax
HRESULT setProxy( SXH_PROXY_SETTING proxySetting, VARIANT varProxyServer, VARIANT varBypassList);
Parameters
- proxySetting [in]
- The proxy configuration whose value is to be set. For a list of available settings and a description of how to use those settings, see Remarks.
- varProxyServer [in, optional]
- The name of a proxy server or a list of proxy server names.
- varBypassList [in, optional]
- The list of locally known host names or IP addresses for which you want to permit bypass of the proxy server.
C/C++ Return Values
- S_OK
- Value returned if successful.
- E_FAIL
- Value returned if name or value is invalid.
Remarks
The following table lists the settings available for use with the setProxy
method.
Setting | Description |
---|---|
0 |
SXH_PROXY_SET_PRECONFIG
- or -
The Currently, the |
1 |
SXH_PROXY_SET_DIRECT
The |
2 |
SXH_PROXY_SET_PROXY
The |
To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button in the upper-left corner of the page.
See Also
Applies to: IServerXMLHTTPRequest /ServerXMLHTTP Members