use LWP::UserAgent; use HTTP::Request::Common; my $ua = LWP::UserAgent->new; for my $url (qw(...)) { if ($ua->simple_request(HEAD $url)->code == 200) { # it's good } else { # it's bad } }
-- Randal L. Schwartz, Perl hacker
In reply to Re: Re: Re: Re: Re: help with link checking
by merlyn
in thread help with link checking
by rmckillen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |