sorz / moproxy

A transparent TCP to SOCKSv5/HTTP proxy on Linux written in Rust.
MIT License
223 stars 35 forks source link

[Feature Request] relay HTTP request to upstream proxy without CONNECT #23

Open nicerloop opened 8 months ago

nicerloop commented 8 months ago

Hi,

My corporate proxy does not allow using CONNECT to establish connections to port 80, but requires cleartext HTTP proxy requests.

Can connections to port 80 be checked for HTTP correctness, and be proxied as GET/POST/PUT/xxx requests to the upstream HTTP proxy.

I have used, in a similar context, redsocks to achieve such redirections from a Docker for Windows environment, with two chains: one for port 80 to the http_relay module, the other for the rest to the http_connect module.

See: