headers.enhost.uk
Analyze HTTP response headers and security headers for any URL
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.
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);
});