HTTP::Response and gzip

A

adiakin

Hello, I have a trouble with using HTTP::Response with decoding gzipped
data
lwp-request -H "Accept-Encoding: gzip, deflate" -SUed host.com return
Content-Encoding: gzip,
but when I write
$ua->agent("Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
$ua->default_header("Accept-Encoding" => "gzip, deflate");
my $response = $ua->get($baseUrl . $aid);
print $response->decoded_content;
I get that $response->decoded_content not defined at all
$response->content_encoding returns gzip
LWP version 5.803
Can anybody help me?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top