perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Idel Fuschini <>
Subject Deflate problem
Date Sat, 07 May 2011 10:30:56 GMT
Hi people,
I've got this problem with DEFLATE.
This is my code example :

  use strict;
  use warnings;
  use Apache2::Filter ();
  use Apache2::RequestRec ();
  use APR::Table ();
  use Cache::FileBackend;
  use Apache2::Const -compile => qw(OK);
  use constant BUFF_LEN => 1024;
  use vars qw($VERSION);

  sub handler {
      unless ($f->ctx) {

      my $Hash=$f->r->subprocess_env();
      my $html_page="<b>hello</b>";
      my $content_type="text/html";
      my $len_bytes=length $html_page;
      $f->r->headers_out->set("Last-Modified" => time());
      return Apache2::Const::OK;

This is my configuration on httpd.conf;
<Location /WSDeflate/*>
   PerlSetOutputFilter DEFLATE
   PerlSetOutputFilter INCLUDES
   SetHandler modperl
   PerlOutputFilterHandler Apache2::AMFWebService
   Allow from all

I don't have any response on my browser, why ?

Mobile: +39 349 442 2668
Web Site:
OpenSource Project: Apache Mobile Filter -
Test Page:
Mobile Test Page:
La presente comunicazione ed i suoi allegati e' destinata esclusivamente
ai destinatari. Qualsiasi suo utilizzo, comunicazione o diffusione non
e' proibita. Se ha ricevuto questa comunicazione per errore, la preghiamo di
immediata comunicazione al mittente e di cancellare tutte le informazioni
erroneamente acquisite. (Rif. D.Lgs. 196/2003). Grazie

This message and its attachments are intended only for use by the
addressees. Any use,
re-transmission or dissemination not authorized of it is prohibited. If you
this e-mail in error, please inform the sender immediately and delete all
the material.
(Rif. D.Lgs. 196/2003). Thank you.

View raw message