Comments (6)
Thoughts on implementing sans-I/O proxy handlers as a part of connection generation? Most proxy interchanges aren't as complex.
from httpx.
I’ve not really looked into what needs to change for proxy support on each of http, https.
Is there a good resource to point at, or summary of the difference in how the request is formed in each of those two cases?
from httpx.
HTTP/HTTPS: Send a request with method=CONNECT, target=[host]:[port] along with proxy headers, if you get a 2XX response back then you start using that TCP connection as a tunnel immediately.
SOCKS4: Similar but uses it's own protocol to request a TCP tunnel. Has own authentication.
SOCKS4a: Same as above but DNS resolution can occur on the client side or proxy-side.
SOCKS5: Same as above but different protocol.
Basically all proxies have three states: Waiting for Response, Proxy Tunnel Ready, and Proxy Error.
from httpx.
is http/s proxy support for httpx currently?
from httpx.
Not currently, we would happily accept a PR from anyone willing to tackle even one of the above proxy scenarios. :)
from httpx.
@sethmlarson Closing this since I think we now have the basics in (HTTP/HTTPS, forward/tunnel) and SOCKS proxy is tracked in #203. If I missed something anyone please reopen. :)
from httpx.
Related Issues (20)
- Requests for new public APIs HOT 9
- Install httpx without pulling anyio, trio and socks HOT 1
- Pressure test httpx Slower and slower HOT 4
- 502 Error When Using Global Proxy
- Shipping broken. "Could not find module httpx" even when installed.
- Authentification docs reference non-existing class HOT 2
- `httpx.AsyncClient` has much worse performance than `aiohttp.ClientSession` with concurrent requests HOT 22
- HTTPX and Celery \ GEvent Issue HOT 3
- Not support "no_proxy" including value of ipv6 prefix style
- http2协议发送请求会发送两次,第一次数据,第二次空包End Stream,如何将第二次空包的End Stream放到第一次包中
- Support IDNA2003 HOT 2
- How to implement failed retry
- BasicAuth vs BasicAuthentication HOT 2
- Httpx connection Nonetype error
- Change default encoding to utf-8 in `normalize_header_key` and `normalize_header_value` functions HOT 4
- httpx能支持get或者post请求的时候传入代理,而不是httpx.AsyncClient初始化的时候传入吗
- Random httpx.ConnectError
- How to force enable HTTP/2.0 HOT 5
- Module 'httpx' has no attribute 'BasicAuthentication' - Documentation is not up-to-date
- error: "HTTPError" has no attribute "response" [attr-defined] HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httpx.