Pass value from filter to anothe filter

--0015174c1422a113200469c86995
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi,

I have this configuration on server:

PerlModule aaaa::bbbb
PerlTransHandler +aaaa::module1
<Location /xxx/*>
SetHandler modperl
PerlInputFilterHandler aaaa::module2
</Location>

and I want to pass variable from module1 to module2 is it possible ?
--
Idel
=====================
E-Mail: idel.fuschini [at] gmail.com
Web Site: http://www.idelfuschini.it
OpenSource Project: http://www.idelfuschini.it/apache-mobile-filter.html

--0015174c1422a113200469c86995
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,<br><br>I have this configuration on server:<br>=A0<br>PerlModule aaaa::=
bbbb<br>PerlTransHandler +aaaa::module1<br><Location /xxx/*><br>=A0=
=A0=A0 SetHandler modperl<br>=A0=A0=A0 PerlInputFilterHandler aaaa::module2=
<br></Location><br clear=3D"all">
<br>and I want to pass variable from module1 to module2 is it possible ?<br=
>-- <br>Idel<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D<br>E-Mail: <a href=3D"mailto:idel.fuschini [at] gmail.com">idel.fuschini [at] =
gmail.com</a><br>Web Site: <a href=3D"http://www.idelfuschini.it">http://ww=
w.idelfuschini.it</a><br>
OpenSource Project: <a href=3D"http://www.idelfuschini.it/apache-mobile-fil=
ter.html">http://www.idelfuschini.it/apache-mobile-filter.ht ml</a><br>

--0015174c1422a113200469c86995--
Idel Fuschini [ Mi, 13 Mai 2009 12:09 ] [ ID #2001117 ]

Re: Pass value from filter to anothe filter

Idel Fuschini wrote:
> Hi,
>
> I have this configuration on server:
>
> PerlModule aaaa::bbbb
> PerlTransHandler +aaaa::module1
> <Location /xxx/*>
> SetHandler modperl
> PerlInputFilterHandler aaaa::module2
> </Location>
>
> and I want to pass variable from module1 to module2 is it possible ?

I think it should be, i would expect you would be able to user
$r->pnotes. It looks like the filters happen after translation based on
this:

http://perl.apache.org/docs/2.0/user/handlers/http.html#HTTP _Request_Cycle_Phases

Adam
Adam Prime [ Mi, 13 Mai 2009 16:03 ] [ ID #2001118 ]

Re: Pass value from filter to anothe filter

On Wed, May 13, 2009 at 3:09 AM, Idel Fuschini <idel.fuschini [at] gmail.com> wr=
ote:
> PerlModule aaaa::bbbb
> PerlTransHandler +aaaa::module1
> <Location /xxx/*>
> =A0=A0=A0 SetHandler modperl
> =A0=A0=A0 PerlInputFilterHandler aaaa::module2
> </Location>
>
> and I want to pass variable from module1 to module2 is it possible ?

You can you use either pnotes or subprocess_env (env variables).

-wjt
William T [ Mi, 13 Mai 2009 16:48 ] [ ID #2001119 ]

Re: Pass value from filter to anothe filter

--0015174c1aac64384e0469cc55a1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

And how can I read it the value ?


2009/5/13 William T <dietbuddha [at] gmail.com>

> On Wed, May 13, 2009 at 3:09 AM, Idel Fuschini <idel.fuschini [at] gmail.com>
> wrote:
> > PerlModule aaaa::bbbb
> > PerlTransHandler +aaaa::module1
> > <Location /xxx/*>
> > SetHandler modperl
> > PerlInputFilterHandler aaaa::module2
> > </Location>
> >
> > and I want to pass variable from module1 to module2 is it possible ?
>
> You can you use either pnotes or subprocess_env (env variables).
>
> -wjt
>



--
Idel
=====================
E-Mail: idel.fuschini [at] gmail.com
Web Site: http://www.idelfuschini.it
OpenSource Project: http://www.idelfuschini.it/apache-mobile-filter-v2x.html

--0015174c1aac64384e0469cc55a1
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

And how can I read it the value ?<br><br><br><div class=3D"gmail_quote">200=
9/5/13 William T <span dir=3D"ltr"><<a href=3D"mailto:dietbuddha [at] gmail.c=
om">dietbuddha [at] gmail.com</a>></span><br><blockquote class=3D"gmail_quote=
" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0=
..8ex; padding-left: 1ex;">
<div class=3D"im">On Wed, May 13, 2009 at 3:09 AM, Idel Fuschini <<a hre=
f=3D"mailto:idel.fuschini [at] gmail.com">idel.fuschini [at] gmail.com</a>> wrote:=
<br>
> PerlModule aaaa::bbbb<br>
> PerlTransHandler +aaaa::module1<br>
> <Location /xxx/*><br>
> =A0=A0=A0 SetHandler modperl<br>
> =A0=A0=A0 PerlInputFilterHandler aaaa::module2<br>
> </Location><br>
><br>
> and I want to pass variable from module1 to module2 is it possible ?<b=
r>
<br>
</div>You can you use either pnotes or subprocess_env (env variables).<br>
<br>
-wjt<br>
</blockquote></div><br><br clear=3D"all"><br>-- <br>Idel<br>=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>E-Mail: <a href=3D"mail=
to:idel.fuschini [at] gmail.com">idel.fuschini [at] gmail.com</a><br>Web Site: <a hre=
f=3D"http://www.idelfuschini.it">http://www.idelfuschini.it</a><br>
OpenSource Project: <a href=3D"http://www.idelfuschini.it/apache-mobile-fil=
ter-v2x.html">http://www.idelfuschini.it/apache-mobile-filte r-v2x.html</a><=
br><br>

--0015174c1aac64384e0469cc55a1--
Idel Fuschini [ Mi, 13 Mai 2009 16:50 ] [ ID #2001120 ]
Webserver » gmane.comp.apache.mod-perl » Pass value from filter to anothe filter

Vorheriges Thema: PerlOpenLogsHandler, END, Devel::Cover, and coredump
Nächstes Thema: executing PerlHandler after default_handler?