WWW::Mechanize does not decompress content.

"Peteris Krumins [Newsgroups]" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
Hello.

I was downloading an image which was gzip compressed by the server but 
the WWW::Mech did not decompress it.
Usually it does but not from this particular site.

Here is an example program which will get the image from that particular 
site and write the content to 'picture.jpg'.
I checked it with Ethereal and what gets written to the file is the 
gzipped content and not the uncompressed jpg picture.

I am using the latest version of WWW::Mechanize 1.26


#!/usr/bin/perl

use WWW::Mechanize;

$mech = new WWW::Mechanize;
$mech->get('http://www.livevideo.com/iv.ashx?c=0EE8DC32A0A5454A824427376239BE6619', 
':content_file' => 'picture.jpg');


P.Krumins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.