SSL Error on Python GET Request

▼魔方 西西 提交于 2019-11-29 17:28:46

The problem is, that the server announces support for TLS1.0 but if you actually try to talk to it using TLS1.0 it will break. Instead you have to use SSL3.

You can do so by using the SSLAdapter included with the requests_toolbelt package: http://toolbelt.readthedocs.org/en/latest/user.html#ssladapter.

Then use ssl.PROTOCOL_SSLv3 instead of the one shown in the documentation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!