SSL Error on Python GET Request

前端 未结 1 1064
时光取名叫无心
时光取名叫无心 2020-12-22 12:33

I am trying to do a simple GET request to this url: link

Here\'s the basic python code which I already use for other urls and works.

url = \'http:/         


        
1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-22 13:01

    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.

    0 讨论(0)
提交回复
热议问题