<?php
// Set the content type to JSON for better readability
header('Content-Type: application/json');

// Get all request headers
$headers = getallheaders();

// Display the headers in JSON format
echo json_encode($headers, JSON_PRETTY_PRINT);
?>
