You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Wim Kerkhoff <wi...@merilus.com> on 2001/04/11 20:25:51 UTC

Re: [OT]:/GET header

dreamwvr@dreamwvr.com wrote:
> 
> hi,
>   anyone recall howto get 'only' the initial header from http servers?
> TIA

HEAD is the command you want:

cuvarack:~/$ telnet impetus 80
Trying 192.168.20.3...
Connected to impetus.
Escape character is '^]'.
HEAD / HTTP/1.0
 
HTTP/1.1 200 OK
Date: Wed, 11 Apr 2001 18:24:40 GMT
Server: Apache/1.3.17 (Unix) mod_perl/1.25 mod_ssl/2.8.0 OpenSSL/0.9.6
Content-Length: 787
Connection: close
Content-Type: text/html
 
Connection closed by foreign host.
cuvarack:~/$

-- 

Regards,

Wim Kerkhoff, Software Engineer
Merilus, Inc.  -|- http://www.merilus.com
Email: wim@merilus.com