HTTP Proxy

Forward HTTP Proxy and CONNECT TunnelingApplication layer · OSI 7

Intermediaries fetching HTTP and tunneling HTTPS via CONNECT

Step 1 of 6: Connect TCP to proxy port 8080. Configured to use proxy 192.0.2.80:8080, the browser does not resolve or dial www.example.com itself. Instead it opens a TCP socket directly to the proxy .
0.0 s / 14.6 s
Your browser192.168.1.10
HandshakeRequestResponseControlEncrypted

Overview

A fetches web requests for clients inside schools or companies to cache pages, enforce policies, or hide client IPs. Plain HTTP is readable to the proxy, while HTTPS uses a CONNECT byte tunnel.

Defined in RFC 9110 and RFC 9112, an HTTP proxy on port 8080/3128 receives absolute-URI requests (GET http://...) for plain HTTP and relays opaque TLS connections for CONNECT host:443 (§9.3.6).

Key facts

Layer
Application (HTTP intermediary)
Common ports
8080, 3128
Plain HTTP
Parsed, cached, and re-issued by proxy
HTTPS sites
Opaque tunnel via CONNECT
Defined in
RFC 9110 (§9.3.6), RFC 9112

Parsed HTTP, opaque HTTPS tunnel

For plain HTTP, the proxy read, logged, and fetched URLs on its own socket; for HTTPS, CONNECT switched the proxy into a blind pipe forwarding end-to-end TLS unchanged.

Demonstrated RFC 9112 forward HTTP request rewriting (`Via`, `X-Forwarded-For`) and RFC 9110 §9.3.6 `CONNECT` TLS tunneling.

Origin sees IP
192.0.2.80 (proxy)
Plain HTTP
Proxy reads and caches full text
HTTPS tunnel
Proxy sees host and size only
DNS resolution
Handled by proxy

Try it yourself

Route a curl request through an HTTP proxy

Observe verbose CONNECT and proxy headers when passing traffic via `-x`.

curl -v -x http://192.0.2.80:8080 https://example.com