Help for this page

Select Code to Download


  1. or download this
        ### set up the useragent object
        my $ua = LWP::UserAgent->new();
        $ua->timeout( $TIMEOUT ) if $TIMEOUT;
        $ua->agent( $USER_AGENT );
        $ua->from( $FROM_EMAIL );
    
  2. or download this
    my $ua = LWP::UserAgent->new(...);
    URI::Fetch->fetch($uri, 'UserAgent' => $ua) };
    
  3. or download this
    use LWP::UserAgent;
    use LWP::ConsoleLogger::Easy qw/debug_ua/;
    my $ua = LWP::UserAgent->new(...);
    debug_ua($ua, 10);