Re: how to track haeder trouble???
| From: | Steve Edberg | Date: | Thu, 11 Jan 2001 19:49:10 +0000 |
| Subject: | Re: how to track haeder trouble??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34081@lists.php.net to get a copy of this message | ||
At 6:34 PM +0100 1/11/01, Sebastian Stadtlich wrote:
Hi All my isp mumbels something about trouble with header changes with php since it's running in CGI mode. I diffuse remember a way to connect to a webserver with telnet on port 80 and then typing something to request a page.. could somone please tell me what that something was? or a page that point's out stuff like that? thanks SebastianOffhand, I can't see what header changes might be causing trouble, but - To actually take a look at the headers returned, you can telnet to your web server, port 80 and then type an HTTP command. For instance: HEAD / HTTP/1.0 <press return key twice> This will give you a summary of info, with headers, of your default index page. GET /some/path/page.php HTTP/1.0 <press return key twice> , for example, will retrieve the entire page /some/path/page.php, including the HTTP headers. For more info on HTTP 1.1 (which most web servers should support by now), you can check out ftp://ftp.isi.edu/in-notes/rfc2616.txt (it's a ~412KB text doc). For a list of references to all HTTP protocols, extensions, proposals, etc. see http://www.w3.org/Protocols/ -steve +--- "They've got a cherry pie there, that'll kill ya" ------------------+
| Steve Edberg University of California, Davis | | sbedberg@ucdavis.edu Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ |+-------------------------------------- FBI Special Agent Dale Cooper ---+