Subject: | $ua->get() hangs for certain URLs |
Date: | Mon, 26 Dec 2016 16:12:14 +0200 |
To: | bug-libwww-perl [...] rt.cpan.org |
From: | Victor Porton <porton [...] narod.ru> |
The following Perl script hangs.
The bug is specific to certain sites/URLs. For example, if we replace
the URL with http://google.com it works as expected.
I suspect it is related with "Expires:" header in the past.
#!/usr/bin/perl
use strict;
use warnings;
use LWP::UserAgent;
my $ua = new LWP::UserAgent;
my $r = $ua->get('http://www.water.gov.il/hebrew/pages/kineret.xml');
# my $r = $ua->get('http://google.com');