Re: Head requests

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
tried
>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
option:

	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
--
Henrik Frystyk Nielsen,
World Wide Web Consortium
http://www.w3.org/People/Frystyk

Received on Thursday, 19 November 1998 16:00:39 UTC