pheader recived from client

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

pheader recived from client

Post 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?
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post 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()
Post Reply