Handling HTTP Proxy like Fiddler #3509
Unanswered
achapkowski
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When debugging client issues, I like to use
fiddler
, this create a temporary proxy that captures web traffic.Using the standard library, I can detect the proxy:
This returns a dictionary like this:
Please note that the port will vary based on your machines setup/configuration.
Knowing this information I want to pass this into the
Client.get
call:This leads to the following error:
httpx.ConnectError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)
The same logic works on
requests
using sessions. What is the magic to make it work here?Beta Was this translation helpful? Give feedback.
All reactions