Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
85 lines (52 sloc) 2.21 KB
README for LWP::UserAgent::Determined
Time-stamp: "2004-04-08 22:37:47 ADT"
LWP::UserAgent::Determined - a virtual browser that retries errors
use strict;
use LWP::UserAgent::Determined;
my $browser = LWP::UserAgent::Determined->new;
my $response = $browser->get($url, headers... );
This class works just like LWP::UserAgent (and is based on it, by
being a subclass of it), except that when you use it to get a web page
but run into a possibly-temporary error (like a DNS lookup timeout),
it'll wait a few seconds and retry a few times.
It also adds some methods for controlling exactly what errors are
considered retry-worthy and how many times to wait and for how many
seconds, but normally you needn't bother about these, as the default
settings are relatively sane.
You install this module, as you would install any perl module library,
by running these commands:
perl Makefile.PL
make test
make install
If you want to install a private copy of this module in your home
directory, then you should try to produce the initial Makefile with
something like this command:
perl Makefile.PL LIB=~/perl
Then you may need something like
setenv PERLLIB "$HOME/perl"
in your shell initialization file (e.g., ~/.cshrc).
For further information, see perldoc perlmodinstall
POD-format documentation is included in this module. POD is readable
with the 'perldoc' utility. See ChangeLog for recent changes.
Questions, bug reports, useful code bits, and suggestions for
this module should just be sent to me at
The latest version of this modules is available from the Comprehensive
Perl Archive Network (CPAN). Visit <> to
find a CPAN site near you.
Copyright 2004, Sean M. Burke <>, all rights reserved.
This program is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
This program is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.
Sean M. Burke <>