in reply to Re: LWP::UserAgent destroys $response->content >:{
in thread LWP::UserAgent destroys $response->content >:{
It still didn't work:-$ua = LWP::UserAgent->new(use_eval => 0); . . eval { $response = $ua->request($request); }; if ($@) { #print "eval: " . $@ . "\n"; if ($@ =~ /Connection refused/) { print "Response Content...\n"; print $response->content . "\n"; } else { . .
gives:-(print "eval: " . $@ . "\n";)
So, (looking at http.pm) there's the problem confirmed.eval: Can't read entity body: Connection reset by peer at /usr/local/l +ib/perl5/site_perl/5.005/LWP/Protocol/http.pm line 337.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: LWP::UserAgent destroys $response->content >:{
by Thelonius (Priest) on May 23, 2003 at 21:22 UTC |