Forum Moderators: bakedjake

Message Too Old, No Replies

Getting the head of a www doc

Is there a utility I could use?

         

Nick_W

2:43 pm on Jun 19, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,
I occasionally have need to get the headers from a www doc like server info and such.

Is there something I can use on my RH system?

Cheers

Nick

PsychoTekk

2:53 pm on Jun 19, 2002 (gmt 0)

10+ Year Member



this script might help you
[searchengineworld.com...]

Nick_W

3:23 pm on Jun 19, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Fantastic! I'd not checked out the tools here before, they're great ;)

Thanks

Nick

littleman

5:47 pm on Jun 19, 2002 (gmt 0)



If you are working on a *nix computer there is a fairly standard utility named HEAD. As the name implies, it grabs header info.
It works like this:
$ HEAD webmasterworld.com
200 OK
Cache-Control: max-age=30
Connection: close
Date: Wed, 19 Jun 2002 17:32:43 GMT
Server: Apache/1.3.19 (Unix) FrontPage/5.0.2.2510
Content-Type: text/html
Client-Date: Wed, 19 Jun 2002 17:23:44 GMT
Client-Peer: 64.33.51.156:80
X-Powered-By: WebmasterWorld v3.00

Nick_W

5:53 pm on Jun 19, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hmmmm.... I just get "no such file or directory"?

Nick

littleman

7:15 pm on Jun 19, 2002 (gmt 0)



You have lynx?
lynx -head [webmasterworld.com...]

Nick_W

7:54 pm on Jun 19, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Perfect ;) Thanks very much littleman!

Nick

warakiya

9:49 pm on Jun 19, 2002 (gmt 0)



Littleman-

Thanks... I had no idea about that flag...