Is there a way to see the browser's http header when making a request...
| From: | Scott Fletcher | Date: | Tue, 08 Apr 2003 13:48:24 +0000 |
| Subject: | Is there a way to see the browser's http header when making a request... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-142859@lists.php.net to get a copy of this message | ||
Hiya Fellas!!
I am wondering if there is a way for me to use the PHP code to see the
sample HTTP that the browser send to the webserver. Yea, I can use the
phpinfo() function but it doesn't tell me how the data is arranged from the
browser. I'll give you an example.
-- This is the HTTP for port 80 --
GET /index.html HTTP/1.0
Connection: Keep-Alive
User-Agent: Mozilla/2.02Gold (WinNT; I)
Host: www.oreilly.com
Accept: image/gif, image/x-xbitmap, image/jpeg, image, pjpeg, */*
--clip--
This is what hte browser send to the server before sending the HTML &
Javascript codes, blah blah. So, what I want to know is how to use the PHP
to display the sample (shown above). Because I am trying to figure out the
sample HTTP that the browser send using port 443.
Thanks!
Scott F.