w3c -head

Jan Hutaƙ <[email protected]> Mon, 11 Dec 2006 16:29:41 +0100
Newsgroups gmane.comp.lib.libwww
Organization Red Hat
Message-ID <[email protected]>
--Signature=_Mon__11_Dec_2006_16_29_41_+0100_j_i=7/wD46eH69sR
Content-Type: multipart/mixed;
 boundary="Multipart=_Mon__11_Dec_2006_16_29_41_+0100_W_qcVjoaK8r5a0bF"


--Multipart=_Mon__11_Dec_2006_16_29_41_+0100_W_qcVjoaK8r5a0bF
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

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
[email protected]        Red Hat, Inc.

--Multipart=_Mon__11_Dec_2006_16_29_41_+0100_W_qcVjoaK8r5a0bF
Content-Type: text/plain;
 name="w3c-head.txt"
Content-Disposition: attachment;
 filename="w3c-head.txt"
Content-Transfer-Encoding: quoted-printable

HEAD /test/dav/head.php HTTP/1.1
Accept: */*
Accept-Encoding: *;q=3D0.3,deflate
TE: trailers,deflate
Host: pok
User-Agent: W3C-WebCon/5.4.1 libwww/5.4.1
Connection: TE,Keep-Alive


HTTP/1.1 200 OK
Date: Mon, 11 Dec 2006 15:19:48 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.1.6
Cache-Control: public
Connection: close
Content-Type: text/html



--Multipart=_Mon__11_Dec_2006_16_29_41_+0100_W_qcVjoaK8r5a0bF
Content-Type: text/plain;
 name="w3c-options.txt"
Content-Disposition: attachment;
 filename="w3c-options.txt"
Content-Transfer-Encoding: quoted-printable

OPTIONS /test/dav/test.txt HTTP/1.1
Accept: */*
Accept-Encoding: *;q=3D0.3,deflate
TE: trailers,deflate
Host: pok
User-Agent: W3C-WebCon/5.4.1 libwww/5.4.1
Connection: TE,Keep-Alive


HTTP/1.1 200 OK
Date: Mon, 11 Dec 2006 15:16:46 GMT
Server: Apache/2.2.3 (Red Hat)
DAV: 1,2
DAV: <http://apache.org/dav/propset/fs/1>
MS-Author-Via: DAV
Allow: OPTIONS,GET,HEAD,POST,DELETE,TRACE,PROPFIND,PROPPATCH,COPY,MOVE,PUT,=
LOCK,UNLOCK
Content-Length: 0
Connection: close
Content-Type: text/plain



--Multipart=_Mon__11_Dec_2006_16_29_41_+0100_W_qcVjoaK8r5a0bF--

--Signature=_Mon__11_Dec_2006_16_29_41_+0100_j_i=7/wD46eH69sR
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFfXll3Cu9u9IxohURAgCJAKC+0NsIjPafQFSFNepIntL4cax9FgCggN0z
+IL9wSDaKISCkBfJFTcx6Uw=
=qf0q
-----END PGP SIGNATURE-----

--Signature=_Mon__11_Dec_2006_16_29_41_+0100_j_i=7/wD46eH69sR--