NYCPHP Meetup

NYPHP.org

[nycphp-talk] naked header

Craig Thomas craig at juxtadigital.com
Fri Apr 14 14:50:51 EDT 2006


On Fri, 14 Apr 2006 13:28:51 -0400
Bill Patterson <patterson at computer.org> wrote:

> I'm trying to find a way to, from PHP, see the entire string that is 
> being sent by the client to the server, especially the header.  There 
> are many ways to see things IN the header, but I am looking for a way to 
> see the WHOLE string.  Any ideas?


I know of a couple [built in] ways to see the headers, not sure about the whole request.

one if you are using PHP 5:

<?php
headers_list();
?>

and one if you are using PHP >= 4.3.0 :

<?php
$headers = apache_request_headers();

foreach ($headers as $header => $value) {
   echo "$header: $value <br />\n";
}
?> 


HTH,

--
Craig



More information about the talk mailing list