【发布时间】:2015-07-03 13:02:08
【问题描述】:
我已按照以下步骤操作:
- 用正确的代理信息更新了我的 cntlm.ini 文件。
- 用正确的用户名、密码和域信息更新了我的 cntlm.ini 文件。
-
使用以下内容更新了我的环境变量:
setx -m HTTP_PROXY "http://127.0.0.1:3128"
setx -m HTTPS_PROXY "http://127.0.0.1:3128"
setx -m PATH "%PATH%;C:\Python34\Scripts"
为我的用户名、域和密码生成了正确的哈希值,并用它们更新了 cntlm.ini 文件。
- 已启动 Cntlm 服务。
完成所有这些后,我运行以下代码并获得 HTTP OK 代码:302。
cntlm -c cntlm.ini -I -M http://www.google.co.za
然后,当我尝试使用 pip 下载 Python 模块时,我收到以下错误:
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )',))': /simple/sphinx/
我已经检查并重新检查了我在 cntlm.ini 中输入的详细信息,有什么想法吗?
【问题讨论】:
标签: python proxy http-proxy