Skip to content

fuentesbusco/http-headers-analyzer

Repository files navigation

HTTP Headers Analyzer

HTTP Headers Analyzer is a simple NestJS API that performs an HTTP request to a given public URL and returns the response headers. This tool is useful for debugging, web inspections, and security analysis.


🔍 What It Does

Given a URL, the API:

  • Sends an HTTP HEAD request (or fallback to GET if needed)
  • Extracts the response headers (like Content-Type, Server, Cache-Control, etc.)
  • Returns them in JSON format

📦 Example Request

GET /headers?url=https://www.google.com

✅ Example Response

{
  "url": "https://www.google.com",
  "headers": {
    "content-type": "text/html; charset=ISO-8859-1",
    "x-frame-options": "SAMEORIGIN",
    "strict-transport-security": "max-age=31536000; includeSubDomains",
    "date": "Mon, 12 May 2025 09:00:00 GMT"
  }
}

🧠 Use Cases

  • Check if a site has CSP, HSTS, or X-Frame-Options enabled
  • Inspect server technologies via headers
  • Validate CDN caching headers
  • Learning HTTP header behavior without browser devtools

✍️ Author

Made with ❤️ by Atelier Busco


📄 License

MIT © Atelier Busco

About

API that fetches and returns HTTP response headers from any public URL. Useful for debugging, security inspection and learning purposes.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors