Is it possible to get the http headers of the current request with PHP? I am not using Apache as the web-server, but using nginx.
I tried using
You can upgrade your server to PHP 5.4 thereby giving you access to getallheaders() via fastcgi or simply parse what you need out of $_SERVER with a foreach loop and a little regex.
foreach