Does Python urllib2 library use the IE proxy setting default on Windows?

眉间皱痕 提交于 2019-12-13 07:26:21

问题


I noticed the urllib2 library used my IE proxy setting. Any official explanation for this?

Thanks a lot.


回答1:


See the urllib2 section on ProxyHandler.

The default is to read the list of proxies from the environment variables <protocol>_proxy. If no proxy environment variables are set, in a Windows environment, proxy settings are obtained from the registry’s Internet Settings section and in a Mac OS X environment, proxy information is retrieved from the OS X System Configuration Framework.



来源:https://stackoverflow.com/questions/11858329/does-python-urllib2-library-use-the-ie-proxy-setting-default-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!