Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

Pass value from filter to anothe filter

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


idel.fuschini at gmail

May 13, 2009, 3:09 AM

Post #1 of 4 (844 views)
Permalink
Pass value from filter to anothe filter

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
Web Site: http://www.idelfuschini.it
OpenSource Project: http://www.idelfuschini.it/apache-mobile-filter.html


adam.prime at utoronto

May 13, 2009, 7:03 AM

Post #2 of 4 (780 views)
Permalink
Re: Pass value from filter to anothe filter [In reply to]

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


dietbuddha at gmail

May 13, 2009, 7:48 AM

Post #3 of 4 (774 views)
Permalink
Re: Pass value from filter to anothe filter [In reply to]

On Wed, May 13, 2009 at 3:09 AM, Idel Fuschini <idel.fuschini [at] gmail> 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.fuschini at gmail

May 13, 2009, 7:50 AM

Post #4 of 4 (772 views)
Permalink
Re: Pass value from filter to anothe filter [In reply to]

And how can I read it the value ?


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

> On Wed, May 13, 2009 at 3:09 AM, Idel Fuschini <idel.fuschini [at] gmail>
> 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
Web Site: http://www.idelfuschini.it
OpenSource Project: http://www.idelfuschini.it/apache-mobile-filter-v2x.html

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.