--- Leif K-Brooks <[EMAIL PROTECTED]> wrote:
> Thanks, but I'm trying to see what the client sent to
> get my page, not  what a host returns when I send it
> a request...


I think he misunderstood your question or something.

There are a few different ways to do what you want to do.
First, if you dig through the output of phpinfo(), you can
usually determine what the exact request was, though it is
not going to be obvious unless you know what you are
looking for. In the case of a POST request, you will need
to have always_populate_raw_post_data turned on in your
php.ini to see the POST data.

Another method is to use a utility such as tcpdump on your
Web server. This works very well except when you need to
capture a specific HTTP request on a busy site.

The method I choose is to use software specifically created
for this purpose. Most software to do this functions as an
HTTP proxy, so that you configure your browser to use it
for a proxy, and it reveals the HTTP requests and responses
that pass through. I wrote a basic one of these that embeds
the HTTP transaction into the page itself, so that you do
not need to reference a log and can just scroll to the
bottom of each page to see both the request and response.
It is written in PHP (as a CLI application), and you are
welcome to take a look and see if it would be useful to you
- http://protoscope.org/.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to