WWW::Mechanize does not decompress content.

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
pknewsgroups [ So, 20 Mai 2007 23:22 ] [ ID #1716102 ]
Perl » perl.libwww » WWW::Mechanize does not decompress content.

Vorheriges Thema: Expensive HTTPS startup on Win32?
Nächstes Thema: Submitting a form with relative path specified in form's action usingWWW::Mechanize