Sounds like a misconfigured proxy to me. This code:
gives me the search.cpan.org page. What happens when you use a browser to retrieve the page? What about curl or wget?#!/usr/bin/perl use strict; use warnings; use LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->timeout(10); $ua->env_proxy; my $response = $ua->get('http://search.cpan.org/'); if ($response->is_success) { print $response->content; } else { die $response->status_line; }
In reply to Re: LWP::UserAgent not finishing get requests?
by derby
in thread LWP::UserAgent not finishing get requests?
by ttlgreen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |