Help for this page

Select Code to Download


  1. or download this
    use LWP::UserAgent;
    my $ua = LWP::UserAgent->new;
    $ua->timeout(2);
    ...
    
  2. or download this
    use LWP::Simple qw(get $ua);
    $ua->timeout(2);
    ...
    
  3. or download this
    use LWP::RobotUA;
    use WWW::RobotRules;
    ...
    
    my $response = $ua->get(...);
    ...