use LWP::UserAgent(); use LWP::ConsoleLogger::Easy qw( debug_ua ); use HTTP::CookieJar::LWP(); ## Create browser object. my $jar = HTTP::CookieJar::LWP->new; my $ua = LWP::UserAgent->new( keep_alive=>200, cookie_jar => $jar, protocols_allowed => ['http', 'https'], timeout => 60, ); debug_ua($ua); # etc.