Feature request #6922
Proxy - use System settings
|Pull Request or Patch supplied:||No||Resolution:|
It would be nice if QGIS could use the "system settings" for a proxy server. Firefox and Chrome can both do this, at least on Windows (never tried them on different OS's with a proxy). Being Open Source I guess you can nab their code. This would ensure easiest use of QGIS when behind a proxy.
#2 Updated by Larry Shaffer almost 3 years ago
- File qgis-proxy-mockup.png added
After looking over the QGIS proxy factory code, and the Qt documentation, it looks like QGIS may already support your system proxy setup.
Try the following settings under
- Check Use proxy for web access
- Make sure the Proxy type is set to
- Make sure all other settings are cleared under Use proxy for web access (excepting your Exclude URLs list, if using that)
Then, test whether your system proxy configuration is being used.
Here is what should be happening under those circumstances:
DefaultProxytype is mapped to informing the QGIS custom network access manager to use the system's defined proxy, which is exactly what you are looking to do.
- If it can not find a proxy set up there, it should drop back to using Internet Explorer's setup, which is also what you are looking for.
This is described in the QNetworkProxyFactory::systemProxyForQuery() documentation.
DefaultProxy was also not noted as querying the system proxy setting(s) in the official QGIS docs either.
DefaultProxy option in the popup combobox is also a bit misleading, in that once set, all other settings (other than Exclude URLs) are ignored, if a proxy is returned from querying the system. The dialog should really have its layout updated to be Use system proxy OR Use configured proxy, then list the Excluded URLs below that.
QNetworkProxy::DefaultProxy type refers to using the defined application proxy, whereas there should be a separate option for using the system proxy settings. As is stand right now (2.5 dev), once the proxy settings are saved, and
DefaultProxy is set for proxy type, then on next launch, that triggers the code to check for a system proxy, and if one is returned, then the other manual proxy settings will be ignored. That is a bug. Using the system proxy settings should be a separate option from defining the proxy type.
Attached is a mockup of what I think that dialog should look like. Note: it also includes a mockup for the option of .pac file support (unimplemented).
#3 Updated by Larry Shaffer almost 3 years ago
- Target version set to Future Release - Lower Priority
- Assignee set to Jürgen Fischer
- Category set to Network
Hi Jürgen. I have assigned you, to review whether my assessment here is correct (or not). I can do the coding ASAP to fix this for 2.6 (though it would add a few GUI strings to that dialog).