httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From luca regini <luca.reg...@gmail.com>
Subject Re: Accessing to per Directory configuration from an input filter: HOW?
Date Wed, 22 Jun 2005 10:56:22 GMT
I add to my previous mail that the ctx parameter in the ap_add_output_filter 
function can be used to pass an arbitrary structure to the filter. So this 
should be the right place to pass information to the filter.
 Luca
 
 On 6/22/05, Nick Kew <nick@webthing.com> wrote: 
> 
> luca regini wrote:
> > I need to write an input filter that is able to change the value of some
> > cookies. However the name of the cookie to be changed is a per- 
> directory
> > value. So i have an input filter whose behavior depends programmatically
> > from per-directory configuration. How should i gain information about 
> per
> > -dir configuration from within a filter??
> > Thanks in advance
> > Luca
> >
> 
> Same as from anywhere else.
> 
> But you don't want to do that in an input filter. Use the header_parser
> hook. Or, if it needs to happen before/after some other module which
> views cookies in a different hook, move as appropriate.
> 
> --
> Nick Kew
>

Mime
View raw message