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
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.
@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. :)
Activity
sethmlarson commentedon Jul 8, 2019
Thoughts on implementing sans-I/O proxy handlers as a part of connection generation? Most proxy interchanges aren't as complex.
lovelydinosaur commentedon Jul 8, 2019
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?
sethmlarson commentedon Jul 8, 2019
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.
qwerty32123 commentedon Aug 5, 2019
is http/s proxy support for httpx currently?
sethmlarson commentedon Aug 6, 2019
Not currently, we would happily accept a PR from anyone willing to tackle even one of the above proxy scenarios. :)
florimondmanca commentedon Oct 17, 2019
@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. :)