BrowserGetProxyAutoConfigFile

Action

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

Include file

BrowserAPI

Syntax

BrowserGetProxyAutoConfigFile( out sConfigUrl : string ): boolean;
Parameter Description
sConfigUrl A string buffer that receives the location of the PAC file.

Return value

  • true if successful

  • false otherwise

Example

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