lookup> CONNECT

CONNECT

Asks the recipient to establish a tunnel to the destination origin server, commonly used with proxies for HTTPS.

unsafenot idempotentnot cacheableRFC7231#4.3.6
PropertyValue
Safe (does not modify state)No
Idempotent (repeatable)No
CacheableNo

Asks the recipient to establish a tunnel to the destination origin server, commonly used with proxies for HTTPS.

curl -x https://proxy.example.com:8080 https://api.example.com
CONNECT example.com:443 HTTP/1.1
Host: example.com:443
CONNECTPOST
Open a tunnel through a proxySubmit data to the server
Establishes a connectionSends a message

Is the CONNECT method safe?

CONNECT is not a safe method — calling it can change resource state.

What happens if I send CONNECT repeatedly?

CONNECT is not idempotent — repeated requests may produce different results.

All HTTP methods

Related status codes

Related headers