[issue42627] urllib.request.getproxies() misparses Windows registry proxy settings

双草酸酯 report at bugs.python.org
Sun Feb 21 12:49:09 EST 2021


双草酸酯 <admin at 0x.mk> added the comment:

I came across this issue as well.
I checked Microsoft documentations and it seems `InternetGetProxyInfo` in WinInet is deprecated, while `WinHttpGetIEProxyConfigForCurrentUser` in WinHTTP will return the exact same string as what it stored registery. 

https://docs.microsoft.com/en-US/troubleshoot/windows-client/networking/configure-client-proxy-server-settings-by-registry-file
Also from this documentation, a proxy server could have "http://" prefix, so I guess it could also support "https://" prefix if a user set a https proxy.

----------
components:  -Windows
nosy: +kotori

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42627>
_______________________________________


More information about the Python-bugs-list mailing list