Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 27259
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: develop [...] traveljury.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.24
Fixed in: (no value)



Subject: Not decoded gzip'ed content
1.24 has changed so that it no longer calles $res->decoded_content, which results in gzip'ed pages remaining as gzip'ed data: For example: $m = WWW::Mechanize->new( autocheck => 1, stack_depth => 0 ); $m->get('http://www.justgiving.com/Process/CharityGuide/default.asp') print $m->content; --> dumps gzip'ed content. The problem is the changes made here (diff btwn 1.22 and 1.24): @@ -1944,16 +2014,11 @@ $self->_reset_page; - # Try to decode the content. Undef will be returned if there's nothing to decompress. - # See docs in HTTP::Message for details. Do we need to expose the options there? - my $content = $res->decoded_content; - $content = $res->content if (not defined $content); - if ($self->is_html) { - $self->update_html($content); + $self->update_html($res->content); } else { - $self->{content} = $content; + $self->{content} = $res->content; } return $res;
We're trying to fix this. Please try 1.29_01 and let us know how it works for you. Thanks, Andy
From: DRTECH [...] cpan.org
On Wed May 23 10:07:09 2007, PETDANCE wrote: Show quoted text
> We're trying to fix this. Please try 1.29_01 and let us know how it > works for you. > > Thanks, > Andy
Yup, works OK in 1.29_01. However, when doing a 'make test', I get these warnings: t/live/wikipedia.........ok 3/15Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/HTML/PullParser.pm line 83. Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/HTML/PullParser.pm line 83. Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/HTML/PullParser.pm line 83. t/live/wikipedia.........ok 5/15Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/HTML/PullParser.pm line 83. Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/HTML/PullParser.pm line 83. Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/HTML/PullParser.pm line 83. t/live/wikipedia.........ok 7/15Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/HTML/PullParser.pm line 83. Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/HTML/PullParser.pm line 83. Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/HTML/PullParser.pm line 83. t/live/wikipedia.........ok 11/15Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/HTML/PullParser.pm line 83. Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/HTML/PullParser.pm line 83. Parsing of undecoded UTF-8 will give garbage when decoding entities at /usr/lib/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/HTML/PullParser.pm line 83.