w3c -head

Hello,
trying get w3c to show headers (or -options), but cant get them:

-----
$ w3c -head http://www.google.com
Looking up www.google.com
Looking up www.google.com
Contacting www.google.com
Reading...
Done!
Done!
-----

When I try curl instead (--include is for include headers into output), I get lots of headers:

-----
$ curl --include http://www.google.com
HTTP/1.1 302 Found
Location: http://www.google.cz/
Cache-Control: private
Set-Cookie: PREF=ID=99f515bc08daa8ed:TM=1165845519:LM=1165845519:S=TtWgM8sL2LQkc5mI; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com
Content-Type: text/html
Server: GWS/2.1
Content-Length: 218
Date: Mon, 11 Dec 2006 13:58:39 GMT

<HTML>...
-----

Same when trying to get available methods for some file (see attached TCP stream):

-----
$ w3c -options -l aaa http://pok/test/dav/test.txt
Looking up pok
Looking up pok
Contacting pok
Reading...
Done!
-----

Seems to me, there is another bug (in w3c, or documentation). Could anybody confirm this?

Wireshark streams for "-head" and "-options" attached.

Regards,
Jan



--
Jan Hutar   Quality Assurance Engineer
jhutar@redhat.com        Red Hat, Inc.

Received on Monday, 11 December 2006 15:29:59 UTC