- Home
- Web & auth
- HTTP header parser
HTTP header parser
Paste request or response headers to read each one, with repeated headers kept in order.
Raw headers
Loading editor…
Request line or status line
Every header after the first line is a name and value pair separated by a colon. The first line tells you whether you pasted a request, a response, or bare header lines, so check it before reading the rest.
| GET /path HTTP/1.1 | request line: method, target, version |
| HTTP/1.1 200 OK | status line: version, code, reason phrase |
Why Set-Cookie stays separate
RFC 9110 allows a recipient to combine repeated header fields into one comma-separated value for most names. Set-Cookie is the exception. Its Expires dates contain commas, so joining two Set-Cookie lines makes parsers split those dates incorrectly. Each line sets one cookie and should stay on its own line.
Names are case-blind
- Header names are case-insensitive, so Content-Type and content-type refer to the same header.
- The By name list groups repeated names under one lowercase label with a count.
- Copy all writes every line back out in its original order.
More web & auth tools
All web & auth toolsWas this tool useful?