Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 56617 invoked from network); 22 Jun 2005 10:56:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jun 2005 10:56:32 -0000 Received: (qmail 53584 invoked by uid 500); 22 Jun 2005 10:56:25 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 53517 invoked by uid 500); 22 Jun 2005 10:56:25 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 53472 invoked by uid 99); 22 Jun 2005 10:56:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2005 03:56:24 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_30_40,HTML_MESSAGE,RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of luca.regini@gmail.com designates 64.233.170.195 as permitted sender) Received: from [64.233.170.195] (HELO rproxy.gmail.com) (64.233.170.195) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2005 03:56:25 -0700 Received: by rproxy.gmail.com with SMTP id y7so56894rne for ; Wed, 22 Jun 2005 03:56:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=USxTnW8jsgazVIHiH51GBw0gQ5mpLdBroSRwHzgFr7h3Lw1qbevGn69NpKedC1EEgDHGAQ3EXV8WI6vzXw2dlmKRDeqMexQocVaM7Tgd5A1oyIKKemoGq7X54RxPdqU8ql5Tr81Sr6lsH+uaoN5qfMj4tojXbJet22cf7TOdqIU= Received: by 10.38.104.62 with SMTP id b62mr275339rnc; Wed, 22 Jun 2005 03:56:22 -0700 (PDT) Received: by 10.39.3.78 with HTTP; Wed, 22 Jun 2005 03:56:22 -0700 (PDT) Message-ID: <64077c2805062203566205b8b6@mail.gmail.com> Date: Wed, 22 Jun 2005 12:56:22 +0200 From: luca regini Reply-To: luca regini To: dev@httpd.apache.org Subject: Re: Accessing to per Directory configuration from an input filter: HOW? In-Reply-To: <42B932CE.9000406@webthing.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1247_22070784.1119437782070" References: <64077c28050622010574a7ddcd@mail.gmail.com> <42B932CE.9000406@webthing.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_1247_22070784.1119437782070 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I add to my previous mail that the ctx parameter in the ap_add_output_filte= r=20 function can be used to pass an arbitrary structure to the filter. So this= =20 should be the right place to pass information to the filter. Luca =20 On 6/22/05, Nick Kew wrote:=20 >=20 > luca regini wrote: > > I need to write an input filter that is able to change the value of som= e > > cookies. However the name of the cookie to be changed is a per-=20 > directory > > value. So i have an input filter whose behavior depends programmaticall= y > > from per-directory configuration. How should i gain information about= =20 > per > > -dir configuration from within a filter?? > > Thanks in advance > > Luca > > >=20 > Same as from anywhere else. >=20 > 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. >=20 > -- > Nick Kew > ------=_Part_1247_22070784.1119437782070 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I add to my previous mail that the ctx parameter in the ap_add_ou= tput_filter function can be used to pass an arbitrary structure to the filt= er. 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 nee= d 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 programmat= ically
> from per-directory configuration. How should i gain informat= ion about per
> -dir configuration from within a filter??
>&nbs= p;  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 w= hich
views cookies in a different hook, move as appropriate.

--
Nick Kew

------=_Part_1247_22070784.1119437782070--