Does Python urllib2 library use the IE proxy setti

2019-09-12 11:01发布

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

Thanks a lot.

1条回答
我只想做你的唯一
2楼-- · 2019-09-12 11:22

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.

查看更多
登录 后发表回答