A
Arvin Portlock
I write the following program which works great:
use LWP::UserAgent;
my $agent = new LWP::UserAgent;
my $response = $agent->head('http://www.perl.org/about.html');
print $response->last_modified;
But most other URLs I try don't return a modified date.
Is this because most servers aren't accepting HEAD requests
anymore? There has to be a way to get the last modifed date
for a web page. We have crawlers and spiders that do it all
the time. Can anybody suggest a way to do this? I'm partic-
ularly concerned about not downloading entire pages but just
getting the sizes and I'm not sure how to do this with LWP.
Thanks for your help
use LWP::UserAgent;
my $agent = new LWP::UserAgent;
my $response = $agent->head('http://www.perl.org/about.html');
print $response->last_modified;
But most other URLs I try don't return a modified date.
Is this because most servers aren't accepting HEAD requests
anymore? There has to be a way to get the last modifed date
for a web page. We have crawlers and spiders that do it all
the time. Can anybody suggest a way to do this? I'm partic-
ularly concerned about not downloading entire pages but just
getting the sizes and I'm not sure how to do this with LWP.
Thanks for your help