Forum Moderators: coopster

Message Too Old, No Replies

Dump all HTTP headers

         

wavesurf

4:08 pm on Dec 21, 2004 (gmt 0)

10+ Year Member



Does anyone know the PHP-command to dump all HTTP-headers that is generated by a visiting browser/terminal?

I take it is something incredibly simple (i.e. $_SERVER[HTTP_ALL]), that somehow managed to slip my mind, but I would greatly appreciate any help.

Thanks.

Hanu

4:16 pm on Dec 21, 2004 (gmt 0)

10+ Year Member



apache_request_headers()

Only works when PHP is running as an Apache module.

coopster

5:23 pm on Dec 21, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



However, there is a superglobals utility script [webmasterworld.com] (message # 2) in the PHP Forum Library [webmasterworld.com] that may come in handy.