Hello all,
this is the first time I am posting to this group.
I use the LWP module to download HTML pages using HTTP protocol.
It has been working well this far, but in some cases after LWP::UserAgent
method 'request' it dies somewhere inside the module itself!
I know, that the HTML is accessible, and no timeout occurs. I have a
feeling,
that it depends either on the HTML content or its size, although the
max_size
is not defined.
Below is the session when I trace the program:
Kino::get_html(/home/ouch/lib/Kino.pm:159):
159: my $ua = LWP::UserAgent->new ;
DB<1> n
Kino::get_html(/home/ouch/lib/Kino.pm:160):
160: $ua->timeout(200) ;
DB<1> n
Kino::get_html(/home/ouch/lib/Kino.pm:161):
161: $ua->proxy('http', $proxy) if($proxy);
DB<1> n
Kino::get_html(/home/ouch/lib/Kino.pm:162):
162: my $request = HTTP::Request->new(GET => $url) ;
DB<1> x $url
0 'http://www.zl.lv/New1/kino-test.ihtml'
DB<2> n
Kino::get_html(/home/ouch/lib/Kino.pm:163):
163: my $response = $ua->request($request) ;
DB<2> n
Debugged program terminated. Use q to quit or R to restart,
use O inhibit_exit to avoid stopping after program termination,
h q, h R or h O to get additional info.
DB<2>
May be you could give a hint where is the problem?
-- Martins
P.S.
Versions:
# $Id: UserAgent.pm,v 1.69 1999/09/21 05:53:30 gisle Exp $
# $Id: Response.pm,v 1.33 1999/03/20 07:37:35 gisle Exp $