FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
bool FB::BrowserHost::DetectProxySettings ( std::map< std::string, std::string > &  settingsMap,
const std::string &  url = "" 

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
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

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 }