Skip to content

Instantly share code, notes, and snippets.

@tcsavage
Created July 11, 2012 11:03
Show Gist options
  • Save tcsavage/3089700 to your computer and use it in GitHub Desktop.
Save tcsavage/3089700 to your computer and use it in GitHub Desktop.
Get HTTP request headers
<?php
header("Content-type: text/plain");
foreach (apache_request_headers() as $k => $v)
{
echo("$k: $v\n");
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment