Ime Smits wrote:
> 
> Hi,
> 
> I would like to apply gzip or inflate compression on the response from
> Apache::ASP, because my application generates a lot low-entropy
> table-structures which can be compressed down to 90-95%. On a normal CGI
> script I would do something like:
> 
> print "Content-type: text/html\n";
> print "Pragma: no-cache\n";
> if($ENV{HTTP_ACCEPT_ENCODING} =~ /gzip/) {
>   print "Content-Encoding: gzip\n\n";
>   print Compress::Zlib::memGzip($out);
> } else {
>   print "\n";
>   print $out;
> }
> 

First note that Apache::ASP is Apache::Filter aware.  If there
is a Apache::Filter::Gzip out there, then you should be able 
to hook it in no prob.  Next, I have on the table a Script_OnFlush
event handler that needs doing, and you could use it for 
this purpose to modify the outbound text pre flush.  Let me
know if you want it & I'll get you a dev copy when its done.

-- Joshua
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks >> free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

Reply via email to