Search code examples
firebreath

Detect Browser Proxy Settings


I'm new to Browser plugin development. I'm developing an plugin using Firebreath. The problem I am having is that when proxy settings is set only for the browser, some of our third party components is not able to connect to the internet.

In the documentation, there was a method FB::BrowserHost::DetectProxySettings() which should map the proxy settings to a std::map variable but when I integrated this into the actual project the method would always return false and the map would always be empty.

Are there any specific conditions in which the browser proxy settings cannot be retrieved? or is the DetectProxySettings() method designed to only detect System proxy settings?

Thanks in Advance


Solution

  • As mentioned above, make sure you provide a URL. Also note that in IE it will get the windows system proxy because the browser doesn't provide an API, so it isn't URL-specific, it's just grabbing the system proxy settings, and you may have issues if you need authentication for said proxy. The API is there to basically do as much as can be done, but it's not perfect :-/