【问题标题】:Does Python urllib2 library use the IE proxy setting default on Windows?Python urllib2 库是否使用 Windows 上的 IE 代理设置默认值?
【发布时间】:2012-08-08 05:45:32
【问题描述】:

我注意到 urllib2 库使用了我的 IE 代理设置。对此有何官方解释?

非常感谢。

【问题讨论】:

    标签: python proxy urllib2


    【解决方案1】:

    请参阅urllib2 section on ProxyHandler

    默认是从环境变量<protocol>_proxy中读取代理列表。如果没有设置代理环境变量,在 Windows 环境中,代理设置从注册表的 Internet 设置部分获取,而在 Mac OS X 环境中,代理信息从 OS X 系统配置框架中检索。

    【讨论】:

      猜你喜欢
      • 2012-04-20
      • 1970-01-01
      • 1970-01-01
      • 2018-04-27
      • 1970-01-01
      • 2011-06-23
      • 1970-01-01
      • 2010-10-12
      • 1970-01-01
      相关资源
      最近更新 更多