I am on windows, and I am seeing a difference between urllib.requests.urlopen and requests package when making calls to the same site.
When I perform the following:
import urllib.request
f = urllib.request.urlopen('https://<domain certificated server> ')
I can reach my server no problems.
When I do:
import requests
f = requests.get('https://<domain certificated server> ').text
I am getting an SSL Certificate error. I know this is caused by certifi
. So my question is this, how can I leverage whatever Python code is doing and use that over certifi
in requests?