Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > HTTP::Response and gzip

Reply
Thread Tools

HTTP::Response and gzip

 
 
adiakin@gmail.com
Guest
Posts: n/a
 
      07-25-2006
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?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
does java has any api for tar and gzip? Nagesh Java 4 02-27-2006 11:17 AM
Gzip compression and ASP.NET Anders K. Jacobsen [DK] ASP .Net 4 12-31-2004 10:17 AM
RE: zlib and gzip Bakken, Gregory A Python 0 05-12-2004 05:39 PM
zlib and gzip Greg Bakken Python 0 05-12-2004 04:56 PM
GZIP output and input strange behaviour Nikk & Jak Anderson Java 2 04-26-2004 08:11 PM



Advertisments