mhnatiuk has asked for the wisdom of the Perl Monks concerning the following question:
there is no additional error handling concering GET.sub get_blog{ #.. #.. #..some code $ua->add_req_header("User-Agent", "User-Agent: Mozilla/5.0 (X11; U; Li +nux i686; pl-PL; rv:1.9) Gecko/2008061015 Firefox/3.0\r") ; $ua->request($_[0]) or die "unable to get ".$_[0]; my $content = $ua->body(); $ua->reset(); # IF this is first page of blog -> parse constant elements # of blog END # parse posts and comments # recurency -> find address & get the next page }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTP::Lite GET - too many requests?
by Crackers2 (Parson) on Jul 13, 2008 at 18:25 UTC | |
by mhnatiuk (Novice) on Jul 14, 2008 at 01:48 UTC | |
by Corion (Patriarch) on Jul 14, 2008 at 06:15 UTC | |
by Anonymous Monk on Jul 14, 2008 at 06:15 UTC | |
|
Re: HTTP::Lite GET - too many requests?
by Tanktalus (Canon) on Jul 14, 2008 at 03:35 UTC |