Back to HTTP Headers
Request

HTTP Cookie Header

Sends stored HTTP cookies from the client to the server. Contains name-value pairs that maintain session state across requests.

Purpose

Maintains session state, user preferences, and tracking information across multiple HTTP requests.

Cookie: name=value Cookie: name1=value1; name2=value2 Cookie: sessionId=abc123; theme=dark

Code Examples

See how to use the Cookie header in different tools and languages.

curl -H "Cookie: sessionId=abc123; theme=dark" https://api.example.com/dashboard
curl --cookie "sessionId=abc123" https://api.example.com/profile

Related Headers

Test Your APIs

cookie headerhttp cookiehttp headers guide