Subject: | Mech 1.30 does not decompress content |
Date: | Tue, 12 Jun 2007 07:25:42 +0300 |
To: | bug-www-mechanize [...] rt.cpan.org |
From: | "Peteris Krumins [Newsgroups]" <pknewsgroups [...] gmail.com> |
Hello!
If I chain get() with content(), then the content does not decompressed
for some reasons.
If I get(), and then call content() separately then the content does get
decompressed.
Here is an example where the content does not get decompressed:
use WWW::Mechanize;
$mech = WWW::Mechanize->new;
print $mech->get('http://www.youtube.com/watch?v=h9MN2mKGZoo')->content;
Here is an example where it does:
use WWW::Mechanize;
$mech = WWW::Mechanize->new;
$mech->get('http://www.youtube.com/watch?v=h9MN2mKGZoo');
print $mech->content;
I'm on latest Mech:
c:\bin2\scripts>perl -MWWW::Mechanize -wle "print $WWW::Mechanize::VERSION"
1.30
P.Krumins