Page tree
Skip to end of metadata
Go to start of metadata

bool FB::BrowserHost::DetectProxySettings ( std::map< std::string, std::string > &  settingsMap,
const std::string &  url = "" 
)
virtual

Detects the proxy settings from the browser.

This will detect the proxy settings for a given URL from the web browser; in the case that The web browser itself is not being forthcoming with proxy settings (i.e. older versions of npapi browsers dont' support it) it will fall back to system proxy settings detection.

settingsMap keys:

  • type - the type of proxy, will be one of: socks, http, https, ftp
  • hostname - hostname or address of the proxy
  • port - port of the proxy
Parameters
settingsMap(out) populated with the proxy settings in a key => value format
urlthe url for which you need proxy settings. Omit for the default proxy
Since
1.6

Reimplemented in FB::Npapi::NpapiBrowserHost.

Definition at line 401 of file BrowserHost.cpp.

Referenced by FB::Npapi::NpapiBrowserHost::DetectProxySettings().

402 {
403  return FB::SystemProxyDetector::get()->detectProxy(settingsMap, url);
404 }
  • No labels