Help for this page

Select Code to Download


  1. or download this
    use LWP::UserAgent;
    my $ua = LWP::UserAgent->new();
    my $response = $ua->post('server url', 'some nvp string');
    
  2. or download this
    use LWPx::ParanoidAgent;
    my $ua = LWPx::ParanoidAgent->new;
    $ua->timeout(30);
    my $response = $ua->post('server url', 'some nvp string');
    
  3. or download this
    use LWP::UserAgent::Determined;
    my $ua = LWP::UserAgent::Determined->new;
    $ua->timing( "1,3,15" )
    my $response = $ua->post('server url', 'some nvp string');
    
  4. or download this
    sub _resolve {
        my ($self, $host, $request, ...) = @_;
    ...
            or die "DNS bgread failure";
    
    ...