HTTP CONNECT (HTTP CONNECT)
HTTP CONNECT asks an intermediary to establish a tunnel to a specified host and port. A successful response changes the connection into bidirectional data forwarding; it does not confirm that the later application request succeeded.
Explanation
The request identifies a tunnel destination
RFC 9110 Section 9.3.6 defines a special target containing a hostname and explicit port. For an illustrative HTTP/1.1 request, CONNECT example.com:443 HTTP/1.1 asks for a connection to that host and port. It does not include the page path /catalog. That path belongs to the application request sent later.
A successful 2xx CONNECT response indicates the transition to tunnel mode. With an HTTPS destination, the client then performs TLS negotiation and sends the protected HTTP request. A TLS error after successful CONNECT is therefore not evidence that the tunnel was never created.
A tunnel is a transport path
CONNECT itself does not provide encryption. In an ordinary HTTPS tunnel, TLS between client and destination protects the application data while the intermediary relays bytes. A deployment that intercepts TLS has additional certificate and trust arrangements and is outside this ordinary-tunnel model.
The proxy can require authentication or refuse certain destinations and ports. These are access decisions at tunnel setup. A 407 challenge should be handled using the proxy authentication mechanism, not a destination login.
Keep two responses separate
A diagnostic log can contain a proxy’s successful tunnel response and a later destination response. Count the final application outcome for the workload. Treating the earlier 200 as a completed page download can hide TLS failures, denied destination access and missing response content.
Further reading
- How HTTP Proxies Handle HTTPS: Request and Response Paths Explained
- How to Test HTTP Proxy Availability: A Step-by-Step Guide for Beginners
- Why Do Proxy IP Requests Time Out? Troubleshooting from Connection to Retry
References
Sources checked on November 19, 2026. Scenarios and numerical examples explain the concepts; they are not proxy performance measurements.
Frequently Asked Questions
RFC 9110 requires an explicit destination port; there is no default port in the CONNECT request target.
Yes. The standard recommends restricting tunnel destinations because unrestricted use creates risks.
No. Certificate validation belongs to the later TLS exchange and can fail after the tunnel exists.