I am trying to find a way to get all http request headers that a browser send when requestion one of my pages.
$_SERVER and apache_request_headers() doesn't help in this: they show me not all request headers.
For example, if I go to a web page of my website, using firefox's Live http headers component, I see that my request header is something like:
GET /path/ HTTP/1.1
Host: www.myurl.com
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; it; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
etc.
what I am interested in and that I cannot get is the row:
GET /path/ HTTP/1.1
that when a page is requested by a proxy becomes:
GET http://www.myurl.com/path/ HTTP/1.1
Is there any way to get this header using PHP?
Thanks!