Coder Social home page Coder Social logo

Proxy support about httpx HOT 6 CLOSED

tomchristie avatar tomchristie commented on August 26, 2024 3
Proxy support

from httpx.

Comments (6)

sethmlarson avatar sethmlarson commented on August 26, 2024

Thoughts on implementing sans-I/O proxy handlers as a part of connection generation? Most proxy interchanges aren't as complex.

from httpx.

tomchristie avatar tomchristie commented on August 26, 2024

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.

sethmlarson avatar sethmlarson commented on August 26, 2024

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.

qwerty32123 avatar qwerty32123 commented on August 26, 2024

is http/s proxy support for httpx currently?

from httpx.

sethmlarson avatar sethmlarson commented on August 26, 2024

Not currently, we would happily accept a PR from anyone willing to tackle even one of the above proxy scenarios. :)

from httpx.

florimondmanca avatar florimondmanca commented on August 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.