on 8/13/02 6:49 AM, [EMAIL PROTECTED] purportedly said:
> Hi all,
>
> I want to get the header of an HTML file, check if it was modified since a
> certain date, and print it.
> I've tried using LWP::Simple, and I can get that information if the file
> name ends in .html.
> The problem is that if the file is an .shtml one, LWP::Simple returns only
> the Server Name and the file type which is still text/html.
> The other values are empty strings.
>
> Can you tell me why?
Could be because your server is not providing these headers for dynamic
content. However, the document length should always have a value, unless an
alternative transfer method is used such as chunked encoding. And LWP is not
HTTP 1.1 savvy.
To check headers, you can use wget:
$ wget -s URL
Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"