$r->add_output_filter using core filters

$r->add_output_filter using core filters

am 20.02.2008 20:44:35 von Fred Moyer

Greetings,

Is it possible to dynamically add core output filters such as INCLUDE with
$r->add_output_filter('INCLUDE')? The docs indicate that
PerlSetOutputFilter INCLUDE is ok, but it looks like $r->add_output_filter
is restricted to perl handlers. I tried add_output_filter with INCLUDE,
but received an error saying no such handler.

Thanks,

Fred

Re: $r->add_output_filter using core filters

am 21.02.2008 09:53:36 von torsten.foertsch

Hi Fred,

On Wed 20 Feb 2008, Fred Moyer wrote:
> Is it possible to dynamically add core output filters such as INCLUDE with
> $r->add_output_filter('INCLUDE')? =A0The docs indicate that
> PerlSetOutputFilter INCLUDE is ok, but it looks like $r->add_output_filter
> is restricted to perl handlers. =A0I tried add_output_filter with INCLUDE,
> but received an error saying no such handler.

Some years ago (~2004) I have digged into that and found it's not possible.=
=20
But you can remove C-level filters (my 1st contribution I think). So you ca=
n=20
add them first and then remove them for requests that don't need them. It i=
s=20
not complicated to write a filter that removes the next filter in the filte=
r=20
chain if some condition is met.

Torsten