Page 1 of 1

pheader recived from client

Posted: Tue Nov 16, 2004 6:19 pm
by pelegk2
hopw can i print the full header that i recive from the clients browser?
is it possible to print on the client side the header that is being sent from the server?

Posted: Tue Nov 16, 2004 6:20 pm
by rehfeld

Code: Select all

<?php
$headers = apache_request_headers();

foreach ($headers as $header => $value) {
   echo "$header: $value <br />\n";
}
?>
you can do the same w/
apache_response_headers()

or php's
get_headers()