You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error using HTTPS proxy through SOCKS5 with requests-go library
Description
An error occurs indicating "Tor is not an HTTP Proxy" when trying to send an HTTPS request through a SOCKS5 proxy.
Versions
Python: 3.11
requests-go: 0.7.1
Steps to Reproduce
The following code snippet reproduces the error:
importrequests_goasrequestssession=requests.session()
session.proxies= {'http': 'socks5h://127.0.0.1:9150',
'https': 'socks5h://127.0.0.1:9150'}
# This works correctlyres=session.get('http://njallalafimoej5i4eg7vlnqjvmb6zhdh27qxcatdn647jtwwwui3nad.onion/')
print(res.status_code)
print(res.history[0].status_code, res.url)
# This causes an errorres=session.get('https://njallalafimoej5i4eg7vlnqjvmb6zhdh27qxcatdn647jtwwwui3nad.onion/')
print(res.status_code)
The text was updated successfully, but these errors were encountered:
Error using HTTPS proxy through SOCKS5 with requests-go library
Description
An error occurs indicating "Tor is not an HTTP Proxy" when trying to send an HTTPS request through a SOCKS5 proxy.
Versions
Steps to Reproduce
The following code snippet reproduces the error:
The text was updated successfully, but these errors were encountered: