apache_request_headersFetch all HTTP request headers Description
array apache_request_headers()
Fetches all HTTP request headers from the current request. Works in the Apache, FastCGI, CLI, and FPM webservers. ParametersThis function has no parameters. Return ValuesAn associative array of all the HTTP headers in the current request. Changelog
Examples
Example #1 apache_request_headers example
The above example will output something similar to: Accept: */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 Host: www.example.com Connection: Keep-Alive Notes
See Also
|