When trying to run the following code (Being X the proxy I'm using),
from requests import get
try:
r = get("https://www.google.com", proxies = {"https": "https://X"})
print(r.content)
except Exception as err:
print(err)
I get the following error:
HTTPSConnectionPool(host='www.google.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1045)')))
But If I do not use any proxies, the request is successful.
It works perfectly fine on my old win7 computer and it also works on all of the servers I've tested it on, so I assume it's something related to Windows10, but as I say, it's just a guess.
Does anyone have any idea on how to fix this? (I've tried multiple things I've found on the internet already, but none have worked)