Tunnel method
CONNECT HTTP Method
CONNECT requests establish a tunnel through the server.
Meaning
The client asks an intermediary to open a tunnel to the target server.
Common uses
Use CONNECT mainly for proxy tunnels such as HTTPS through an HTTP proxy.
What to check
Check proxy configuration, target authority, tunnel permissions, and whether the response switches into tunnel mode.
Example request
CONNECT example.com:443 HTTP/1.1
Host: example.com:443Properties
- Safe
- No. This method can change server state.
- Idempotent
- No. Repeating the request can create another effect.
- Cacheable
- No
- Request body
- Usually no
References
- Registry
- IANA HTTP Method Registry
- Guide
- MDN CONNECT