[issue36930] Windows proxy settings automatically used ... partly

Immo Wetzel report at bugs.python.org
Thu May 16 12:09:13 EDT 2019


Immo Wetzel <immo.wetzel at adtran.com> added the comment:

>Can you clarify how you are setting your proxy configuration and how >Python is finding out about it?
The windows host get his proxy configuration via group police from the Active Directory. The group policy points to a specific file wpad.dat formerly known as proxy.pac
This is a configuration used for IE and Chrome automatically from the hosts.

How Python finds this out and is using this is unclear to me. There is definitely no environment variable setting done.

>Also, which libraries are you using?
request and urllib2 both are failing

>As far as I'm aware, Python itself does nothing special to load proxy settings from normal Windows configuration. Doing so would be a feature request (though it's one I'd like to see happen).

I was guessing so too. Especially cos all help site tell me how to specify proxy objects for use with requests lib. But obviously there is something existing.

----------

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


More information about the Python-bugs-list mailing list