in reply to Uncompress Gzip File From WWW::Mechanize
Presumably you specified (via default_header()) the request header, 'Accept-Encoding' => 'gzip, deflate' beforehand, so you can do this:
my $gunzipped = $mech->content( 'decoded_by_headers' => 1 );
|
|---|