Re: decompress downloaded page

2004-11-24 Thread Ing. Branislav Gerzo
Kelvin Wu [KW], on Wednesday, November 24, 2004 at 21:46 (+0800) made these points: KW> use Compress::Zlib; KW> my $results = Compress::Zlib::memGunzip($resp->content); thanks a lot, I knew that will be so easy :) hm, what exactly means deflate ? It is not compressed content ? So my browser accep

Re: decompress downloaded page

2004-11-24 Thread Kelvin Wu
use Compress::Zlib; my $results = Compress::Zlib::memGunzip($resp->content); On Wed, 24 Nov 2004 14:32:27 +0100, Ing. Branislav Gerzo <[EMAIL PROTECTED]> wrote: > Hi all, > > I have this snippet, and I'd like to decompress its contents: > > sub dwl { >my $ua = LWP::UserAgent->new; >$ua

decompress downloaded page

2004-11-24 Thread Ing. Branislav Gerzo
Hi all, I have this snippet, and I'd like to decompress its contents: sub dwl { my $ua = LWP::UserAgent->new; $ua->default_header('Accept-Encoding' => 'gzip, deflate'); $resp = $ua->get(@_); return ($resp->content, $resp->status_line, $resp->is_success) if wantarray; return un