Re: Show the entire browser request
| From: | Dotan Cohen | Date: | Mon, 08 Jun 2009 20:40:48 +0000 |
| Subject: | Re: Show the entire browser request | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293765@lists.php.net to get a copy of this message | ||
> This should do it, I believe:
>
> <?php
>
> echo $_SERVER['REQUEST_METHOD'], ' ', $_SERVER['REQUEST_URI'],
> ' ',
> $_SERVER['SERVER_PROTOCOL'];
>
> ?>
>
Thanks, Andrew, I'm sure that works for correctly-formed requests.
However, I am trying to diagnose a web browser that is _not_ correctly
forming it's requests, therefore I need the real request itself, as it
was.
I am starting to realize that PHP is not the language for this, I may
have to look into an Apache module or something lower-level. Thanks!
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il