configureProxy

configureProxy(config:   Integer;
               host:     String;
               user:     String;
               password: String): Boolean;

The configureProxy method of the JadeHTTPConnection class sets up the proxy server configuration. The config parameter, which defines the type of access required, can be one of the JadeHTTPConnection class constants listed in the following table.

Value Description
ProxyConfig_Direct Resolves all host names locally, and does not use a proxy server.
ProxyConfig_PreConfig Retrieves the proxy or direct configuration from the registry (the default value).
ProxyConfig_PreConfig_NoAuto Retrieves the proxy or direct configuration from the registry and prevents the use of a start-up Microsoft JScript or wpad.dat file.
ProxyConfig_Proxy Passes requests to the proxy.

The host parameter specifies the name of the proxy server or servers to use when proxy access is specified by setting the value of the config parameter to ProxyConfig_Proxy. If the value of the proxyConfig property is not set to ProxyConfig_Proxy, the value of the host parameter should be null.

If the proxy server requires authentication, the user parameter contains the user name provided to the proxy server. If the proxyConfig property is not set to ProxyConfig_Proxy, the value of the user parameter should be null.

If the proxy server requires authentication, the password parameter contains the password provided to the proxy server. If the proxyConfig property is not set to ProxyConfig_Proxy, the value of the password parameter should be null.

The configureProxy method returns true if the method call was successful in setting up the proxy server configuration; otherwise it returns false.