satyabrata_karan has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monk, LWP::UserAgent get method returns partial XML. Please any idea how to find why the junk XML came and is their any other better substitute for LWP::UserAgent.
my $ua = LWP::UserAgent->new; $ua->timeout(5); my $response = $ua->get($url); unless ($response->is_success) { $self->error( $response->status_line ) ; return undef; } return $response->content; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::UserAgent return partial XML
by Jenda (Abbot) on May 24, 2012 at 08:27 UTC | |
|
Re: partial XML came from server
by Anonymous Monk on May 22, 2012 at 03:16 UTC |