Re: lastModified

Giganews Newsgroups
Subject: Re: lastModified
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Wed, 2 Feb 2005

"Tapio Saarikumpu" <t_saari.nospam@yahoo.com> wrote in message
news:537C90FD29BEE240t_saari.nospam@yahoo.com...

> is there any way to get the LastModified parameter of a PHP
> or ASP page without downloading the html?

You already know the answer to that - use Head() to download just the
headers and not the full page content.

> I'm using IdHttp1.Head to compare the IdHttp1.Response.LastModified
> to see if the page has changed. But in these pages there isn't a
LastModified
> parameter.

Then the server is faulty.  As per the RFCs, the headers returned by the
HEAD command are supposed to be the exact same headers that are returned by
the GET and POST commands.  If the server is not returning all of the
headers, then the server is buggy.

Gambit

Replies

In response to

lastModified posted by Tapio Saarikumpu on Wed, 2 Feb 2005