Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 52052 invoked from network); 22 Jun 2005 10:51:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jun 2005 10:51:06 -0000 Received: (qmail 43925 invoked by uid 500); 22 Jun 2005 10:51:00 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 43866 invoked by uid 500); 22 Jun 2005 10:51:00 -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 43853 invoked by uid 99); 22 Jun 2005 10:51:00 -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:51:00 -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.200 as permitted sender) Received: from [64.233.170.200] (HELO rproxy.gmail.com) (64.233.170.200) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2005 03:51:01 -0700 Received: by rproxy.gmail.com with SMTP id y7so56502rne for ; Wed, 22 Jun 2005 03:50:58 -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=p4WIK2A+Rl7etPy5BttDAEF6nMi+TXRhxPmwkKVunayNpg2FrewJqLPcIVqKLWNBH3fY9dxRLcUu0RXq/+JAXUGPxxlfdEYajkZqZR2Fo3RdhvfPp8X2DqqjQBEwHfZ483V/QOPYVi7Elh3clltBJcifga8JDvQElEPb99PgPMc= Received: by 10.39.2.65 with SMTP id e65mr271654rni; Wed, 22 Jun 2005 03:50:58 -0700 (PDT) Received: by 10.39.3.78 with HTTP; Wed, 22 Jun 2005 03:50:58 -0700 (PDT) Message-ID: <64077c28050622035023469514@mail.gmail.com> Date: Wed, 22 Jun 2005 12:50:58 +0200 From: luca regini Reply-To: luca regini To: dev@httpd.apache.org, nick@webthing.com 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_1243_11123970.1119437458636" 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_1243_11123970.1119437458636 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I am not able to find any example of use of this hook to alter the value of= =20 a cookie. For my ( limited and erroneous) understanding an hook cannot alte= r=20 requests nor produce content. This are tasks made for filters. Luca 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_1243_11123970.1119437458636 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I am not able to find any example of use of this hook to alter the val= ue of a cookie. For my ( limited and erroneous) understanding an hook canno= t alter requests nor produce content. This are tasks made for fil= ters.
 
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_1243_11123970.1119437458636--