In our legacy application we use Python2.6 with requests 2.9.1 for making API requests.
There a strange behavior is noticed with Python requests library that is, it fails where curl requests succeeds
curl -k https://url # getting 200 response
Wherein,
import requests
requests.get('https://url', verify=False) # fails with read timeout.
The same URL is working from the browsers as well, not able to figure out the reason behind it
System Info
- CentOS release 6.10 (Final)
- Python 2.6.6
- requests 2.9.1