WebSetProxyBypass Function

Action

Sets the names of hosts not be accessed through a proxy.

Include file

WebAPI.bdh

Syntax

WebSetProxyBypass( in bBypassLocal : boolean,
                   in sBypass      : string optional ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
bBypassLocal If this parameter is set to true, the low-level web functions bypass proxies to hosts that do not contain a period in their names
sBypass Optional list of host names or IP addresses, or both, that should not be routed through the proxy (optional). The host names are separated by blanks. The list can contain wildcards. This parameter may be NULL if not needed.

Example

dcltrans
  transaction TWebInit
  begin
    // Set up proxy connection using the WebSetting commands
    WebSetProxy(WEB_PROXY_HTTP, "proxy.mydomain.com", 80);
    WebSetProxyBypass(FALSE);
    
    // Set password used for authentication
    WebSetProxyAuth("proxyuser", "proxypass");
  end TWebInit;