com.HTTPRequest.setProxy
Configure the proxy URL.
Syntax
setProxy(
host STRING,
port INTEGER )
- host defines the host of the proxy.
- port defines the port number of the proxy.
Usage
Defines the proxy URL to be used for the current HTTPRequest
request. Even if a
proxy URL is configured in FGLPROFILE, the proxy set by the setProxy()
method will
be used.
If proxy_host is NULL or proxy_port is < 0, error -15535 (Invalid parameter) is raised.
If proxy_host is unreachable, error -15579 (COM_PROXY_ERROR) is raised.
In case of error, the method throws an exception and sets the
STATUS
variable. Depending on the error, a human-readable description of the
problem is available in the SQLCA.SQLERRM
register. See Error handling in GWS calls (STATUS).