Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Checking "incomplete" URLs

by nop (Hermit)
on Feb 19, 2002 at 03:08 UTC ( #146301=note: print w/ replies, xml ) Need Help??


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; }


Comment on Re: Re: Checking "incomplete" URLs
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://146301]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-09-16 05:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (156 votes), past polls