enhost logo

headers.enhost.uk

HTTP Headers Checker

Analyze HTTP response headers and security headers for any URL

About This Service

This free HTTP headers checker analyzes response headers from any URL, including security headers like HSTS, Content-Security-Policy, X-Frame-Options, and more. It also provides status codes, response times, and detailed header information.

Headers fetched in real-time from target servers.

How to Use

Query HTTP headers via HTTP API:

https://headers.enhost.uk/?url=https://example.com

Returns JSON with headers and security analysis:

{
  "url": "https://example.com",
  "status_code": 200,
  "response_time_ms": 123.45,
  "headers": {...},
  "security": {...}
}

cURL example:

curl "https://headers.enhost.uk/?url=https://example.com"

Bash script example:

#!/bin/bash
URL="https://example.com"
curl -s "https://headers.enhost.uk/?url=$URL" | jq .

Python example:

import requests

url = 'https://example.com'
response = requests.get(f'https://headers.enhost.uk/?url={url}')
data = response.json()

print(f"Status: {data['status_code']}")
print(f"Response time: {data['response_time_ms']}ms")
print(f"Headers: {data['headers']}")

JavaScript example:

const url = 'https://example.com';

fetch(`https://headers.enhost.uk/?url=${encodeURIComponent(url)}`)
    .then(res => res.json())
    .then(data => {
        console.log('Status:', data.status_code);
        console.log('Response time:', data.response_time_ms + 'ms');
        console.log('Headers:', data.headers);
    });
enhost NTP Time What's my IP DNS Lookup WHOIS Lookup SSL Checker Headers Checker