Reading headers sent
The function apache_request_headers() or its alias getallheaders() spit out the request headers to an array.
<?php
$headers_array = apache_request_headers();
?>
$headers_array = apache_request_headers();
?>
[Click to add or edit comments])
Please prepend comments below including a date