unresolved problems with libwww-perl-5.08
Bill Kuhn (wkuhn@sun1.uconect.net)
Mon, 21 Apr 1997 11:59:58 -0400
I previously sent a message regarding some problems with (I believe) the
UserAgent module.
I have received a couple of different suggestions/recommendations but
none of them addressed the problem at hand which is that the UserAgent
module seems to be in need of some repair.
So, I just want to report the problem again in the hopes that somebody
(hopefully the author) will read this and take the appropriate action
(test and fix the problem as necessary).
The problem seems to be with the timeout implementation in the UserAgent
module when I do the following:
$ua = new LWP::UserAgent ;
$ua->timeout(20) ;
$request = new HTTP::Request('HEAD',$url) ;
$request->header('Accept' => 'text/html') ;
$response = $ua->request($request) ;
$rcode = $response->code ;
print STDERR $rcode,"\n" ;
If I run the above code using the following urls:
http://www.davidmorgan.com
http://www.deerskin.com
http://www.davidmorgan.com
the first returns a 200 error code (ok) and the second times out (408).
The third one (the same as the first) returns a 500 error code.
Well, that is the problem.
I would appreciate any assistance in helping to resolve this problem.
Thank you in advance.
-Bill
--
Bill Kuhn
Chief Developer
Wired Markets, Inc.
http://www.buyersindex.com