is it possible get the deflate information in reuest object

View: New views
2 Messages — Rating Filter:   Alert me  

is it possible get the deflate information in reuest object

by Shibi NS :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I have following configiration in my apache

Header append Vary User-Agent env=!dont-vary
DeflateBufferSize 8096
DeflateCompressionLevel 4
DeflateMemLevel 9
DeflateWindowSize 15
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%) "%{User-agent}i"' deflate
CustomLog /var/log/httpd/deflate_log deflate

Can I get the Input/Output and Ratio information in Apache2 Request object or PerlLogHandler ?

--Shibi Ns--

Re: is it possible get the deflate information in reuest object

by Torsten Foertsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon 12 Oct 2009, Shibi NS wrote:
> LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)
> "%{User-agent}i"' deflate
> CustomLog /var/log/httpd/deflate_log deflate
>
> Can I get the Input/Output and Ratio information in Apache2 Request
> object or PerlLogHandler ?

in a PerlLogHandler you should be able to read them as
$r->notes->{ratio} etc.

Torsten

--
Need professional mod_perl support?
Just hire me: torsten.foertsch@...