CONNECT

Establishes a tunnel to the target server (e.g., for HTTPS through a proxy). Used by proxies to set up SSL/TLS tunnels. Not used in typical REST APIs.

Properties

Safe
No
Idempotent
No
Has body
No

Typical use cases

Proxy tunneling, SSL/TLS through HTTP proxy

cURL example

curl -x proxy:8080 -X CONNECT api.example.com:443

Typical response

Tunnel established; subsequent traffic is proxied

Common status codes

200 Connection Established407 Proxy Auth Required502 Bad Gateway

Comparison with similar methods

CONNECT is for proxies; GET/POST are for normal request/response.

Related methods

Tools

API Request Builder →