![Python请求SSL版本](https://linux22.com/image/1080601/Python%E8%AF%B7%E6%B1%82SSL%E7%89%88%E6%9C%AC.png)
我在 Ubuntu 13.04 上使用 pythonrequests
模块。我一直收到错误:
requests.exceptions.SSLError: [Errno 1] _ssl.c:504: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
当我使用 curl 时,它默认会失败,但使用该-3
选项会成功。
curl https://username:Password@helloworldurl -3
这让我相信它是 SSL 版本,我在搜索错误时发现它在 ubuntu 上可能不太受支持。我还应该注意,相同的代码在 Mac 上运行良好。
那么。我该如何使用 python 更改或检查 SSL 版本(最好使用 )requests
。
注意:该网址是私人的,不能泄露。抱歉。