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
>Sebastian

Offhand, 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 |
| [EMAIL PROTECTED]                               Computer Consultant |
| http://aesric.ucdavis.edu/                  http://pgfsun.ucdavis.edu/ |
+-------------------------------------- FBI Special Agent Dale Cooper ---+

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to