Re: Show the entire browser request
| From: | Matty Sarro | Date: | Mon, 08 Jun 2009 20:43:42 +0000 |
| Subject: | Re: Show the entire browser request | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293766@lists.php.net to get a copy of this message | ||
If its the request from the browser, why not just fire up a packet sniffer
and get it that way? Unless it's using SSL/TLS/VPN/something that would
encrypt it, you should be able to see the request in clear text.
On Mon, Jun 8, 2009 at 4:40 PM, Dotan Cohen <dotancohen@gmail.com> wrote:
> > 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>