Skip Menu |

This queue is for tickets about the Net-HTTP CPAN distribution.

Report information
The Basics
Id: 72790
Status: resolved
Priority: 0/
Queue: Net-HTTP

Owner: Nobody in particular
Requestors: HINDMARSH [...]
Cc: Ashley.Hindmarsh [...]

Bug Information
Severity: Important
Broken in: 6.02
Fixed in: (no value)

CC: ashley.hindmarsh [...]
Subject: Failing with Net::HTTP
Download (untitled) / with headers
text/plain 596b
Ref - RT#72580 "I just removed it in commit 208a2e384a176237. We'll se if anybody complains." It seems that it breaks pretty quickly if Net::SSL is required. Sample code: use Net::SSL; $ENV{PERL_NET_HTTPS_SSL_SOCKET_CLASS}="Net::SSL"; use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $res = $ua->get(''); read failed: at /home/ashley/ms5_lib_20111014/lib/perl5/Net/HTTP/ line 256 at /home/ashley/ms5_lib_20111014/lib/perl5/i686-linux-gnu-thread-multi/Net/ line 211 We can't switch to IO::Socket::SSL - it doesn't handle our PKCS certs, or our proxy.
From: ppisar [...]
Download (untitled) / with headers
text/plain 492b
We hit problem with chunked HTTPS response. GETting <> results in truncated body. Net::HTTP croak about mallformed chunk is added into headers but no error is reported to LWP::UserAgent. Actually the response is valid and fully parseble by Net::HTTP if carried on plain TCP. I think IO::Socket::SSL truncates or splits the response data chunk decoder does not expect it. See for more details (
Download (untitled) / with headers
text/plain 408b
I stumbled on this bug myself. When I took ppisar's suggestion of reverting the change in RT#72580, the problem goes away. I'm running perl-5.14.2, built via perlbrew on Dec 27, 2011 (with - Dusethreads and -Dnoextensions=ODB_File) on an old CentOS 5.2 server with module versions libwww-perl 6.02 and IO::Socket::SSL 1.53. Let me know if I can provide any other details that would be helpful. -- Andy
Download (untitled) / with headers
text/plain 261b
I've restored the blocking override for Net::SSL in <>. IO::Socket::SSL is supposed to handle blocking correctly so I need to investigate what goes wrong in that case some more.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to