我正在使用请求与django应用程序通信,但是
当我尝试的时候
requests.get('https://mysite.com', verify=True)我得到了错误:
主机名'mysite.com‘与'*.myhost.com’、'myhost.com‘中的任何一个都不匹配
但是,当我查看浏览器或http://www.digicert.com/help/时,证书看起来很不错。
我的主人建议这是缺乏来自请求的SNI支持( Github似乎证实了https://github.com/kennethreitz/requests/issues/749 )。有没有人找到了使用请求的变通方法?
https://stackoverflow.com/questions/18578439
复制相似问题