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) { $f->r->headers_out->unset('Content-Length'); $f->ctx(1); } 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("Content-Length"=>$len_bytes); $f->r->headers_out->set("Last-Modified" => time()); $f->r->content_type($content_type); $f->print($html_page); 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 </Location> I don't have any response on my browser, why ? Thanks Idel ===================== Mobile: +39 349 442 2668 E-Mail: idel.fusch...@gmail.com Web Site: http://www.idelfuschini.it OpenSource Project: Apache Mobile Filter - http://www.idelfuschini.it/apache-mobile-filter-v2x.html Test Page: http://www.apachemobilefilter.org/test/php_test.php Mobile Test Page: http://www.apachemobilefilter.org ------ La presente comunicazione ed i suoi allegati e' destinata esclusivamente ai destinatari. Qualsiasi suo utilizzo, comunicazione o diffusione non autorizzata e' proibita. Se ha ricevuto questa comunicazione per errore, la preghiamo di darne 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 received this e-mail in error, please inform the sender immediately and delete all the material. (Rif. D.Lgs. 196/2003). Thank you.