perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fred Moyer <>
Subject Re: Modperl2 question
Date Thu, 09 Mar 2006 09:45:40 GMT wrote:
> Hi All!
> I'm planing to port a web application for mod_perl1 ro mod_perl2.
> I've carefully read to porting pages related to that
> (, but unfortunatelly, I haven't
> found solutions to my simple problems.
> 1. How can I read a cookie from a PerlResponseHandler ?

a) You can use $r->headers_in

b) You can use the libapreq glue

c) You can use CGI::Cookie

> 2. How can I read form params from a PerlResponseHandler too?

a) You can read the data directly using $r->read

b) You can use the libapreq glue

c) You can use CGI

> 3. Is there any good method to cleanly share data between two or more 
> PerlResponseHandler(s) (like $f->ctx() in filter) ?

You can use $r->pnotes

> The uniq solution I found is to use the Apache::Compat wich by the way works 
> very fine.
> But now, I want to fully move to mod_perl2.
> Is there some examples dealing with my problems?

I prefer using the libapreq libraries ( 
for most operations with regards to 1) and 2), but there are many ways 
to do it.  Check the links above for some good examples in the docs.

View raw message