1

I am attempting to send a proxied post request with http.client, and I am getting SSL: WRONG_VERSION_NUMBER error.

Below is my current code:

r = http.client.HTTPSConnection("IP:PORT")
r.request('GET', f"http://httpbin.org/get" , headers={"host": "httpbin.org"})
res = r.getresponse()
print(res.read().decode())

It is currently returning an SSL error. ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1076).

Tony Montana
  • 921
  • 18
  • 46
Rubs 01
  • 11
  • 1

0 Answers0