Ask a Question related to PERL Miscellaneous, Design and Development.
-
sprint@pilot.net #1
LWP and gzip
New to perl and experimenting with LWP.
However I have come across some website content that comes down as
"content-encoding: gzip" followed by a few hundred bytes of
gobbledegook.
Can someone point me to some sample code to de-crypt this on the fly,
please
Thanks
sprint@pilot.net Guest
-
gzip to max 9
Dear All, <?php function wrl2wrz($buffer) { return gzencode ($buffer, 9); } ob_start("wrl2wrz"); /* here the file */ ob_end_flush(); #... -
tar and gzip
In article <x7wuesu88v.fsf@bolo.xenadyne.com>, Sean Burke <burke_sp31415@pacbell.net> wrote: GNU tar does not create standard compliant TAR... -
Piping through gzip
bill wrote: Compress::Zlib from www.cpan.org does this, i think kevin -
Where is gzip?
I downloaded the 4330-09 to 4330-11 Maintenance pagkage, but it's a ziped tarball. My 433 system doesn't hagve gzip installed. Does anyone know... -
apt-get update: gzip: stdin: not in gzip format
On Sat, Jul 05, 2003 at 11:01:02PM -0400, Robert August Vincent II wrote: Use FTP for your apt sources? -- "How can I not love the Americans?... -
Sam Holden #2
Re: LWP and gzip
On Mon, 08 Sep 2003 08:50:13 +0100, [email]sprint@pilot.net[/email] <sprint@pilot.net> wrote:
I'd guess that the uncompress function in Compress::Zlib might do the trick.> New to perl and experimenting with LWP.
>
> However I have come across some website content that comes down as
> "content-encoding: gzip" followed by a few hundred bytes of
> gobbledegook.
>
> Can someone point me to some sample code to de-crypt this on the fly,
> please
However, it seems a bit "rude" for a web server to send gzip encoded
stuff unless you specified it in the Accept-Encoding header of the request.
--
Sam Holden
Sam Holden Guest
-
Gregory Toomey #3
Re: LWP and gzip
<sprint@pilot.net> wrote in message
news:rvcolvootvpdunblk55jpgc28qbivb54s7@4ax.com...You are proabably downloading a file stored in zip format on the server.> New to perl and experimenting with LWP.
>
> However I have come across some website content that comes down as
> "content-encoding: gzip" followed by a few hundred bytes of
> gobbledegook.
>
> Can someone point me to some sample code to de-crypt this on the fly,
> please
>
> Thanks
Archive::zip (available from [url]www.cpan.org[/url]) works with plain zip files.
On Linux I would call the Linux utilities "gunzip" or "zcat", using the Perl
"system" command, to unzip the file.
gtoomey
Gregory Toomey Guest
-
news@roaima.freeserve.co.uk #4
Re: LWP and gzip
[email]sprint@pilot.net[/email] wrote:
The webserver shouldn't provide content with gzip encoding unless your> However I have come across some website content that comes down as
> "content-encoding: gzip" followed by a few hundred bytes of
> gobbledegook.
client has offered that capability. Complain to the website provider.
Feed the data content through one of the many gzip modules> Can someone point me to some sample code to de-crypt this on the fly,
> please
(e.g. Compress:Zlib or maybe PerlIO::gzip) to uncompress it.
Chris
--
@s=split(//,"Je,\nhn ersloak rcet thuarP");$k=$l=@s;for(;$k;$k--){$i=($i+1)%$l
until$s[$i];$c=$s[$i];print$c;undef$s[$i];$i=($i+(ord$c))%$l}
news@roaima.freeserve.co.uk Guest



Reply With Quote

