Re: Headers

From: Date: Sun, 17 Dec 2000 18:42:15 +0000
Subject: Re: Headers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-30750@lists.php.net to get a copy of this message
> How do I access headers from a windows machine using telnet.Theres lots of > examples on the net using UNIX but nothing on windows.Ive tried several > telnet programs but i seem to be doing something wrong.Any help? > Mike Hi Mike- I've tried it in Windows, it works fine ... just a little different : Start -> Run -> Then type : telnet php.net 80 I notice in windows it doesn't echo back, pretend it does and type the following : HEAD / HTTP/1.0 Then, press enter twice. That will show you the given headers. Windows telnet is lame and and prompts some nasty error but it displays the header nevertheless. Try a *real* windows shell program. Also, if you want to play with such things try : http://www.netcraft.com/ Also, in user comments under header() , there is a function posted to get header from a site. http://www.php.net/manual/function.header.php Those are a few options at least :-) Regards, Philip --.sig [ Want to write Good code? First, write Bad code. ] [ Will work for money : http://www.cornado.com/ ]

« previous php.general (#30750) next »