Paste raw HTTP headers (from curl -i / curl -I, browser devtools, a proxy log...) and get a plain-English explanation for each one, grouped by category. Security-relevant values are rated against current best practice, and for a response the recommended security headers that are missing are listed. Runs entirely in your browser — nothing you paste is sent anywhere.
curl -sS -X POST https://devops.majbase.com/http-header-analyzer/api -H "Content-Type: application/json" -d '{"headers":"Content-Type: text/html\nCache-Control: no-cache"}'
# audit a live site's response headers
curl -sI https://example.com | jq -Rs '{headers: .}' | curl -sS -X POST https://devops.majbase.com/http-header-analyzer/api -H "Content-Type: application/json" -d @-
// JavaScript (browser or Node 18+)
const res = await fetch("https://devops.majbase.com/http-header-analyzer/api", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ headers: "Strict-Transport-Security: max-age=300\nServer: nginx/1.25.3" }),
});
const report = await res.json();
console.log(report.security_score, report.missing);
# Python
import requests
r = requests.post("https://devops.majbase.com/http-header-analyzer/api",
json={"headers": "HTTP/2 200\nX-Frame-Options: DENY"})
print(r.json()["missing"])
Returns {"headers": [{"name", "value", "explanation", "recognized", "category", "rating", "note"}, ...], "kind", "status_line", "missing": [{"name", "why"}], "security_score": {"present", "total"}}. rating is good, warn, bad or null; security_score and missing are filled only for responses.
Want an AI agent (Claude Code, claude.ai, or anything else that supports the Agent Skills format) to use this tool for you on request? Download the skill below and add it:
~/.claude/skills/http-header-analyzer/SKILL.md