in reply to LWP::UserAgent not finishing get requests?
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; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: LWP::UserAgent not finishing get requests?
by ttlgreen (Sexton) on Jan 17, 2009 at 01:59 UTC | |
by derby (Abbot) on Jan 17, 2009 at 02:45 UTC | |
by ttlgreen (Sexton) on Jan 17, 2009 at 03:04 UTC | |
by missingthepoint (Friar) on Jan 17, 2009 at 02:49 UTC |