How to fix “bad handshake” SSLErrors when utilizing python requests

前端 未结 1 1927
逝去的感伤
逝去的感伤 2021-01-16 18:23

I\'m trying to get access to the BambooHR API (documentation here), but I receive the following error

    params = {
        \'user\': username,
        \'pa         


        
相关标签:
1条回答
  • 2021-01-16 19:25

    You try by setting verify=False, use this option if you are using self-signed certificates.

    r = requests.get(url, params=params, verify=False)

    More info http://docs.python-requests.org/en/master/user/advanced/#ssl-cert-verification

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