#!usr/bin/perl use LWP::Simple; getprint($ARGV[0]); exit;
IO::Socket::connect(/usr/lib/perl5/5.8.0/i386-linux-thread-multi/IO/Socket.pm:121): 121: $err = $! || (exists &Errno::ETIMEDOUT ? &Errno::ETIMEDOUT : 1);
HTTP::Headers::CODE(0x82e8db0)(/usr/lib/perl5/site_perl/5.8.0/HTTP/Headers.pm:59):
59: for (@header_order) {
DB<8>
HTTP::Headers::CODE(0x82e8db0)(/usr/lib/perl5/site_perl/5.8.0/HTTP/Headers.pm:60):
60: my $lc = lc $_;
DB<8> s
HTTP::Headers::CODE(0x82e8db0)(/usr/lib/perl5/site_perl/5.8.0/HTTP/Headers.pm:61):
61: $header_order{$lc} = ++$i;
DB<8> s
HTTP::Headers::CODE(0x82e8db0)(/usr/lib/perl5/site_perl/5.8.0/HTTP/Headers.pm:62):
62: $standard_case{$lc} = $_;
DB<8> s
Edit: [g0n] code tags round output data
#!/usr/bin/perl use strict; use warnings; use LWP::Simple; print get($ARGV[0]); exit;
So, the bit that keeps repeating in the debugger is a red herring, I think. If you take a look at that section of the code, it repeats about 40 or 50 times - it looks like an infinite loop if you step through it in the debugger, but at run time certainly less than a second. Barring an extremely broken Perl, I don't see how that code could be looping infinitely. (It just builds indexes of common HTTP headers... and at module load-time, to boot.)
My wild guess is that the socket issue is closer to the heart of the problem. Is there perhaps a proxy issue? Can you telnet to port 80 from your terminal?
C:\>lwp-request -x http://search.cpan.org/ LWP::UserAgent::new: () LWP::UserAgent::request: () LWP::UserAgent::send_request: GET http://search.cpan.org/ LWP::UserAgent::_need_proxy: Not proxied LWP::Protocol::http::request: () LWP::Protocol::collect: read 689 bytes LWP::Protocol::collect: read 1696 bytes LWP::Protocol::collect: read 1231 bytes LWP::UserAgent::request: Simple response: OK ****SNIP**** C:\>[http://search.cpan.org/author/GAAS/libwww-perl-5.805/bin/lwp-request|lwp-request]
perlmonks.org content © perlmonks.org and ercparker, fishbot_v2, mutatedgene, PodMaster
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03