NAME

LWP::UserAgent::Paranoid::Compat - LWP::UserAgent::Paranoid drop-in replacement for LWPx::ParanoidAgent

SYNOPSIS

use LWP::UserAgent::Paranoid::Compat;
my $ua = LWP::UserAgent::Paranoid::Compat->new;

# use $ua the same as LWPx::ParanoidAgent...

DESCRIPTION

This class is a subclass of LWP::UserAgent::Paranoid and changes the default behaviour and interface to match LWPx::ParanoidAgent as closely as possible.

Differences from LWP::UserAgent::Paranoid

  • Only HTTP and HTTPS are allowed

  • Timeout is 15s by default

  • A timeout constructor param and "timeout" method are available

  • The "resolver" method gets/sets the underlying resolver used by an Net::DNS::Paranoid instance instead of acting as the getter of the Net::DNS::Paranoid instance itself. The resolver constructor param follows suite.

BUGS

All bugs should be reported via rt.cpan.org or bug-LWP-UserAgent-Paranoid@rt.cpan.org.

AUTHOR

Thomas Sibley <tsibley@cpan.org>

LICENSE AND COPYRIGHT

This software is primarily Copyright (c) 2013 by Best Practical Solutions, with parts of it Copyright (c) 2014-2015 by Thomas Sibley.

This is free software, licensed under:

The GNU General Public License, Version 2, June 1991