seanmonstar / reqwest

An easy and powerful Rust HTTP Client
https://docs.rs/reqwest
Apache License 2.0
9.51k stars 1.07k forks source link

Tunnel (CONNECT) also HTTP over proxy #470

Open quite opened 5 years ago

quite commented 5 years ago

A feature. It would be great if we had an option to tunnel also HTTP over a specified proxy. That is, first doing CONNECT, just as is done (and required) for getting HTTPS though a proxy. curl has this, and it is called --proxytunnel.

seanmonstar commented 5 years ago

I've seen the feature here and there, but so far I still don't see any reason to use it. I'm curious why you feel it would be great :D

quite commented 5 years ago

Ah yes, it would be useful for connecting to Tor's HttpTunnelPort which is a peculiar "http proxy" which only supports CONNECT. Admittedly, it is a bit of a kludge, just to get around another kludge. (Certainly, proper SOCKS supports would also solve this...). I'm going to have a look if I find time, it'll be a great exercise in Rust :)

felipellrocha commented 5 years ago

Could this be why reqwest stops failing inside of telepresence? (They use torsocks to implement their features)