通过具有ntlm身份验证的https代理隧道,然后在https url处进行身份验证

时间:2018-08-09 12:24:50

标签: python https proxy python-requests ntlm

我正在尝试获取https地址的内容,该地址本身需要使用python中的工具进行身份验证。更具体地说,使用Anaconda发行版的Python 3.6。
在这里,我使用了请求模块。我现在遇到的问题是我必须通过具有NTLM身份验证的代理。为此,我拥有域,proxy_user,proxy_port,https://url,url_user和url_pwd。 使用基本标识,我将执行以下操作(最小示例): `

   import requests
   proxystring = 'https://domain\\proxy_user:proxy_pwd@proxy_ip:proxy_ip'
   url = 'https://something.com'
   url_user = 'example'
   url_pwd = 'exammpe_pwd'
   response = requests.get(url, auth=(url_user, url_pwd), proxies=proxies)

` 不幸的是,这不起作用,并且我无法连接到代理服务器。我反复找到对ntlm_aut使用python的解决方案。 https://github.com/jborean93/ntlm-auth,但我还必须在目标IP上进行身份验证。该解决方案可能微不足道,但是我不知何故无法连接点。

谢谢

0 个答案:

没有答案
相关问题