I wrote a program to get HEAD section of a HTML file but this only works locally. In other words, I get nothing back when I go on the internet. This alos does not recognize proxy. Can someone please tell me if there is an easy way to do this?

Here is my code:

my $res = LWP::UserAgent->new->request(HTTP::Request->new(HEAD => $startUrl));
local $\ = "\n";

if ($res->is_success) {
$lastModified = scalar(localtime($res->last_modified));
}else {
$lastModified = "";
}

Regards,
MK



--Mustafa



Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices!

Reply via email to