HTTP Header Analyzer

A free tool that requests any web address and shows the status code and every response header the server sends back, with a list of missing security headers. It turns the invisible part of loading a web page into something a class can read. With how-to steps, its limits and class tasks.

Web toolBachelor +2CC BY 4.0

What you will learn

  • Read a status code and say what it means
  • Name common response headers and what they control
  • Spot caching rules, cookies and security headers in a real response
  • Explain why a tool's view of a site can differ from a browser's

What it does

  • Requests the address you enter from ManyPI's server and shows the status code and all response headers. If you leave out https://, it is added for you.

  • Picks out three facts at the top: the status with its short text, the server software (from the server or x-powered-by header, or "Hidden" if the site names neither) and the content type.

  • Lists which of six common security headers are missing: strict-transport-security, content-security-policy, x-frame-options, x-content-type-options, referrer-policy and permissions-policy.

  • Shows every header under All headers, including caching rules such as cache-control and cookies set with set-cookie.

The tool fetches the page itself, so nothing is installed and no browser extension is needed. It sees what any visitor would see, without being logged in.

How to use it

  1. Open the HTTP Header Analyzer.

  2. Type an address, such as https://example.com, and click Get headers.

  3. Read the three facts at the top, then the list of missing security headers.

  4. Open All headers and read them line by line. The guide to how HTTP works explains the common ones.

Good to know

  • It asks for the headers only. The tool sends a HEAD request, which asks for the headers without the page itself. Nearly all servers answer it like a normal request; a few answer differently, for example with 405 Method Not Allowed.

  • It follows redirects. If an address redirects, the tool shows the final answer, not the 301 or 308 on the way. To see a redirect itself, use curl -I in a terminal (in Windows PowerShell: curl.exe -I).

  • It asks from a server, not from your browser. Some sites block requests from data centres or answer them differently, for example with 403 Forbidden. That says something about the site's protection, not about the address being wrong.

  • "Missing" is not the same as "unsafe". A simple page without forms or sign-in needs fewer protections, and x-frame-options is partly replaced by a rule inside content-security-policy. Treat the list as questions to ask, not as a grade.

  • It shows response headers only. The headers your browser sends with a request are not shown.

Why it is useful in class

Every page load starts with a short exchange of text between browser and server. The developer tools show it too, but they are crowded. Here the response arrives on its own, which is easier to read for a first look.

Ideas for class

  • Request https://example.com together and read the response line by line with the guide to how HTTP works.

  • Compare two sites: which one says which server software it uses, and which hides it? Why might a site prefer to hide it?

  • Let learners look for security headers such as strict-transport-security and explain what they ask the browser to do.

  • Read cache-control on a news site and on a simple information page. Which one may the browser keep longer, and why?

Tasks for a lesson

  1. Request https://example.com. Write down the status code, its short text and the content type.

  2. Find the cache-control header, if there is one. How many seconds may the browser reuse the response? How many minutes is that?

  3. Request your school's website. Which of the six security headers are missing? Pick one and find out what it protects against.

  4. Request an address on your school's site that does not exist, such as /does-not-exist. Which status code comes back?

  5. Request the same address once with http:// and once with https://. The tool follows redirects, so both may show the same final answer. What does that tell you about the http:// address?

Notes for teachers
  1. Usually 200 OK and text/html, often with charset=UTF-8.

  2. Answers vary. A value such as max-age=3600 means 3600 seconds, which is 60 minutes. no-cache or no-store means the browser must check again or not keep it at all.

  3. Answers vary by site. strict-transport-security makes browsers use HTTPS only; content-security-policy limits where scripts and images may load from; x-frame-options stops other sites from showing the page inside a frame (clickjacking); x-content-type-options: nosniff stops the browser guessing file types; referrer-policy limits what the next site learns about where you came from; permissions-policy switches off features such as camera access.

  4. Usually 404 Not Found. Some sites answer 200 with a "not found" page.

  5. If both show the same HTTPS answer, the http:// address redirects to HTTPS. Learners can confirm the redirect with curl -I.

Some school networks or websites block such requests. If an address gives an error, try another site; that is a useful lesson in itself.

Using this page

The tool is free to use. This description and the ideas on it are licensed under CC BY 4.0.

Reuse this material

CC BY 4.0

You may copy, adapt and share it, also commercially, as long as you credit ManyPI and link back.

"HTTP Header Analyzer" by ManyPI (https://manypi.com/edu/http-header-analyzer), licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)