BrowserGetProxy

Action

Retrieves the current proxy host name and port number either for all protocols or for a specific protocol.
Note: This function only works with Internet Explorer.

Include file

BrowserAPI

Syntax

BrowserGetProxy( out sProxy     : string,
                 in  nProxyType : number optional ): boolean;
Parameter Description
sProxy A string buffer that receives the proxies.
nProxyType Proxy type. Can be one of the following types:
  • BROWSER_PROXY_HTTP
  • BROWSER_PROXY_FTP
  • BROWSER_PROXY_HTTPS
  • BROWSER_PROXY_SOCKS

Return value

  • true if successful

  • false otherwise

Example

transaction TMain
var
  sProxy: string;
begin
  BrowserStart(BROWSER_MODE_DEFAULT, 800, 600);
  BrowserSetProxy(BROWSER_PROXY_HTTP, "proxy.mydomain.com", 8080);  
  BrowserNavigate("www.mycompany.com");
  BrowserGetProxy(sProxy, BROWSER_PROXY_HTTP);
end TMain;