W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1998

Re: Head requests

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Thu, 19 Nov 1998 16:00:36 -0500
Message-Id: <>
To: olga@goliath.eai.com, www-lib@w3.org
At 14:37 11/19/98 -0600, olga wrote:
>I have problems with HEAD request. I tried the example (just that code
alone) in
>http://www.w3.org/Library/Examples/head.c and it didn't load anything (I
>both stdout, and file pointer).

It actually loads the file and parses the HTTP header. However, it doesn't
present it anyway. You can see what happens if you add the "s" command line

	head http://www.w3.org s

>I would appreciate any help on this matter.

If you want to see the headers then you can for example use the command
line tool like this

	w3c -n -source -head http://www.w3.org

it waits for the server to close the connection, however, as it has no way
of finding out that the header is done (the headers are passed directly to
the output without being parsed).

Henrik Frystyk Nielsen,
World Wide Web Consortium
Received on Thursday, 19 November 1998 16:00:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:48 UTC