'Why doesn't Requests skip the certificate?

When executing a cUrl request :

curl  -k -u test:123 -i -X  POST -H "Content-Type: text/xml" "https://127.0.0.1:8085/q/status.xml"

I get an answer , everything works fine

But when executed via Requests:

    import requests

headers = {
    'Content-Type': 'text/xml',
}

response = requests.post('https://127.0.0.1:8085/q/status.xml', headers=headers, verify=False, auth=('test', '123'))

I get an error - requests.exceptions.SSLError: HTTPSConnectionPool(host='127.0.0.1', port=8085): Max retries exceeded with url: /q/status.xml (Caused by SSLError(SSLError(1, '[SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:997)')))



Solution 1:[1]

the issue has been resolved by downgrading the python version to 3.6

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Alexey