HTTP Headers Reference and Parser
Understand any set of HTTP headers: paste them to get each one explained, missing security headers flagged and cookie problems found, or browse the reference and builders.
Działa w Twojej przeglądarce. Twoje pliki nigdy nie opuszczają urządzenia. Zobacz, jak to sprawdzić
…
Jak to zrobić
- 1Choose a view
Explain pasted headers, reference, methods, REST or builders.
- 2Paste headers
Paste raw request or response headers.
- 3Read explanations
Check what each header does.
- 4Fix warnings
Address cookie, caching and security issues.
- 5Use the builders
Generate Cache-Control and Set-Cookie lines.
- 6Retest
Paste the new headers to confirm.
O tym narzędziu
Headers control caching, security, cookies, compression, cross-origin access and much more, yet they are easy to get wrong and hard to read in a browser's network panel. This tool explains them. Paste the raw request or response headers, from curl -I, your browser's developer tools or a server log, and each header is described in plain words with good values. Problems are flagged: a session cookie without Secure or HttpOnly, SameSite=None without Secure, a weak HSTS max-age, contradictory Cache-Control directives, a framework version leaked in X-Powered-By, and missing security headers such as Content-Security-Policy and X-Content-Type-Options. The reference covers 50 headers with notes, the HTTP methods with their safety and idempotency, and a REST API design checklist. The builders produce a Cache-Control value for each kind of content and a hardened Set-Cookie line.
What is checked
- Cookies: Secure, HttpOnly and SameSite present; SameSite=None paired with Secure. - Caching: no-cache together with max-age, which usually means confusion about what no-cache does. - HSTS: max-age of at least six months. - Information leaks: X-Powered-By and server version headers. - Missing security headers on responses: Content-Security-Policy, X-Content-Type-Options, Strict-Transport-Security, Referrer-Policy.
Caching in one paragraph
Files whose names include a content hash can be cached for a year with public, max-age=31536000, immutable. HTML should use no-cache, which still allows storing but revalidates with the ETag each time. Private API responses use private, and sensitive data uses no-store. Shared caches such as CDNs can be given their own lifetime with s-maxage.
Cookies in one paragraph
Session cookies should be Secure (HTTPS only), HttpOnly (hidden from JavaScript) and SameSite=Lax or Strict (not sent on most cross-site requests). The __Host- prefix forces Secure, Path=/ and no Domain, which stops subdomains overwriting the cookie.
Methods and REST
The methods table shows which methods are safe (no side effects) and idempotent (repeating has the same effect), which matters for retries. The REST checklist covers resource naming, status codes, paging, versioning, errors in the Problem Details format and idempotency keys.
Where headers come from
Frameworks, reverse proxies and CDNs all add headers, and a later layer can override an earlier one. When a header is missing or duplicated, check each layer in turn: the application, Nginx or Apache, then the CDN.
Limits
The parser checks what is in the text you paste; it cannot fetch a live site, because browsers do not expose all headers of other sites to web pages. Security checks are a quick review, not a penetration test.
Przykład z rozwiązaniem
Pasting a response with Set-Cookie: session=abc123; Path=/; HttpOnly and X-Powered-By: Express flags the missing Secure and SameSite attributes, recommends removing X-Powered-By and lists Content-Security-Policy and Referrer-Policy as missing.
W skrócie
- Kategoria: Programowanie i dane
- Działa w przeglądarce, bez rejestracji i wysyłania.
- Wpisane informacje zostają na Twoim urządzeniu.
- Dostępne po angielsku.
- Treść ostatnio sprawdzona:
- Oficjalne źródło: RFC 9110 (HTTP Semantics), RFC 9111 (HTTP Caching), RFC 6265bis (Cookies)
Najczęstsze pytania
Where do I get the raw headers?
From curl -I, the Network panel in browser developer tools, or server logs.
Can it check a live website?
No. Paste the headers; browsers do not let pages read other sites' headers.
What is the right Cache-Control for HTML?
Usually no-cache, so browsers revalidate and pick up new releases quickly.
Why does my cross-site cookie not work?
SameSite=None requires the Secure attribute and HTTPS.
Does it cover all headers?
It explains the 50 most important; others are marked as custom.
Is anything uploaded?
No. Parsing happens in your browser.
