mirror of
https://github.com/fiddyschmitt/File-Tunnel.git
synced 2026-10-22 06:11:00 +00:00
Mirror the SOCKS dynamic-forwarding path for clients that speak the HTTP proxy protocol (curl -x, a browser's HTTPS-proxy setting). CONNECT method only (HTTPS and any TCP tunnel); no authentication. Reuses the far-side dialer and the ConnectResult accurate-reply plumbing verbatim, so the 200 / 502 / 504 reply is written only after the exit reports its dial result and always before any relayed bytes. New: ft/Http/HttpProxyNegotiator.cs (the CONNECT handshake decoder) and ft/Listeners/HttpProxyServer.cs (a TCP-only clone of SocksServer), wired through --http-proxy (local) / --remote-http-proxy (remote). Tests: negotiator unit tests, hermetic end-to-end tests, and a four-proxy rapid-request stress test (hundreds of concurrent CONNECTs over one tunnel, unique-payload echo verified). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SjajJ7d3BhSZGfsMrGRS5S |
||
|---|---|---|
| .. | ||
| HttpProxyNegotiator.cs | ||