http://www.perlmonks.org?node_id=146301


in reply to Re: Checking "incomplete" URLs
in thread Checking "incomplete" URLs

Hurrah! GET (vs. POST) solved it -- Many thanks, BlueLines! ++
sub validURL { my ($self, $url) = @_; my $req = new HTTP::Request GET => $url; my $res = $self->request($req); my $content = $res->content; return 0 if $content =~ /the page you have requested cannot be fou +nd/i; return 0 unless $content =~ /\S/i; return 1; }