WWW::Mechanize does not decompress content.

WWW::Mechanize does not decompress content.

am 20.05.2007 23:22:35 von pknewsgroups

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=0EE8DC32A0A54 54A824427376239BE6619',
':content_file' => 'picture.jpg');


P.Krumins