httpx uses proxy unexpectedly on windows #1513
Unanswered
amchii
asked this question in
Potential Issue
Replies: 1 comment 4 replies
-
We might need a bit of compare-and-contrast between what we do for determining environment proxies on Our case... Line 287 in e05a537 Theirs... https://github.com/psf/requests/blob/589c4547338b592b1fb77c65663d8aa6fbb7e38b/requests/utils.py#L770 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checklist
master
.Describe the bug
I set a proxy globally on
127.0.0.1:10909
but except forlocalhost
/127.0.0.1
(Windows Setting->Network->Proxy ), then I foundhttpx.get('http://127.0.0.1:8000')
will use the proxy(unexpected), but chrome andrequests.get('http://127.0.0.1:8000')
accessed it directly(expected).To reproduce
localhost
\127.0.0.1
,httpx.get('http://127.0.0.1:8000')
.Expected behavior
httpx.get
accesseshttp://127.0.0.1:8000
without proxy.Actual behavior
httpx.get
accesseshttp://127.0.0.1:8000
with proxy.Debugging material
Environment
Additional context
Beta Was this translation helpful? Give feedback.
All reactions