BrowserSetProxyAutoConfigFile

Action

Specifies the location of a PAC (Proxy Auto-Configuration) file.
Note: This function only works with Internet Explorer.

Include file

BrowserAPI

Syntax

BrowserSetProxyAutoConfigFile( in sConfigUrl : string ): boolean;
Parameter Description
sConfigUrl Specifies the location of the PAC file. This may be a Web URL like http://localhost:81/proxy.pac or it may be a file location like file://K:/temp/proxy.pac. Specify an empty string ("") to reset this setting.

Return value

  • true if successful

  • false otherwise

Example

transaction TMain
begin
  BrowserStart(BROWSER_MODE_DEFAULT, 800, 600);
  BrowserSetProxyAutoConfigFile("http://proxy.mydomain.com/proxy.pac");  
  BrowserNavigate("www.mycompany.com");
end TMain;