Are they all stored in $_SERVER
? Even custom ones?
The get_headers() function in PHP is used to fetch all the headers sent by the server in the response of an HTTP request.
Try this
print_r
($_SERVER)
It will list everything within the array
you can use getallheaders()
to get an array of all HTTP headers sent.
$headers = getallheaders(); foreach($headers as $key=>$val){ echo $key . ': ' . $val . '<br>'; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With