Skip Menu |

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 28809
Status: rejected
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: jrockway [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 5.808
Fixed in: (no value)



Subject: LWP::UserAgent no longer decodes gzipped responses
Older versions of LWP used to decoded gzipped content, and it doesn't seem to do that anymore. I notice this breaking my apps, and a few test suites on CPAN. Is this a "feature"? To see the bug in action, try: GET -H'Accept-encoding: compress, gzip' http://slashdot.org/ This used to print slashdot, now it prints the gzipped version. In fact, GET -H'Accept-encoding: compress, gzip' http://slashdot.org/ | zcat works fine, and prints slashdot. -- Jonathan Rockway <jrockway@cpan.org>
From: GAAS [...] cpan.org
I'm quite sure that there has been no change in this behaviour. The more likely explanation is that the server side has started to honor the Accept-Encoding header passed on. lwp-request should probably be changed to print $response->decoded_content. That should make it decode gzip automatically.
Subject: Re: [rt.cpan.org #28809] LWP::UserAgent no longer decodes gzipped responses
Date: Mon, 13 Aug 2007 07:25:04 -0500
To: Gisle_Aas via RT <bug-libwww-perl [...] rt.cpan.org>
From: Jonathan Rockway <jon [...] jrock.us>
On Mon, Aug 13, 2007 at 07:18:14AM -0400, Gisle_Aas via RT wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=28809 > > > I'm quite sure that there has been no change in this behaviour. The > more likely explanation is that the server side has started to honor the > Accept-Encoding header passed on. > > lwp-request should probably be changed to print > $response->decoded_content. That should make it decode gzip automatically.
Thanks for the reply. The problem I'm actually having is with Mech, so I will have to see how that works. Maybe a Mech changed tricked me into blaming you :) Regards, Jonathan Rockway