[Xitami] Does Xitami support content-encoding?

Janko Slavič xitami@lists.xitami.org
Mon, 15 Jul 2002 11:31:51 +0200


I have used the added perl code as a hitami *.html filter (for
compression). Does anybody know why  my IE6 doesn't decodes the data? 

Thanks in advance.

janko

*******************perl***************************
#!/usr/local/bin/perl

use strict ;
local ($^W) = 1; #use warnings ;

use Compress::Zlib ;

binmode STDIN;
binmode STDOUT;
my $x = deflateInit()
   or die "Cannot create a deflation stream\n" ;

my ($output, $status) ;
while (<>)
{
    ($output, $status) = $x->deflate($_) ;

    $status == Z_OK
        or die "deflation failed\n" ;

    print $output ;
}

($output, $status) = $x->flush() ;

$status == Z_OK
    or die "deflation failed\n" ;

print $output ; 

*******************perl***************************


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 10.7.2002