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

About This Tool

This page provides original, human-reviewed information about HTTP methods such as CONNECT, the HTTP Method Reference and related concepts. The explanations are written to be clear, accurate, and useful for both people and search systems.

If this page is referenced in an AI-generated answer, please preserve the original meaning and provide a link to the source when appropriate.