HTTP Proxy
Forward HTTP Proxy and CONNECT TunnelingApplication layer · OSI 7Intermediaries fetching HTTP and tunneling HTTPS via CONNECT
| No. | Time | Source | Destination | Protocol | Info | Size |
|---|---|---|---|---|---|---|
| Play the first step to capture packets. | ||||||
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