pnotes
http://perl.apache.org/docs/2.0/api/Apache2/RequestUtil.html#C_pnotes_
Title: Persisting data across handlers
Hi,
I'd like to create an object in the PerlChildInitHandler and allow access to this object in various PerlResponseHandlers. What's the best way to do this?
I created a bucket brigade in childinit and associated it with the child pool and put the o
Tom's suggestion made me realize the obvious flaw in the code that
neither of us saw.
header_out
doesn't exist in the api. headerS_out does.
Try:
$r->headers_out( Location => 'http://www.google.fr' );
not:
$r->header_out( Location => 'http://www.google.fr' );
On
Chris Werner wrote:
You lost it here, Chris. Input filters feed the protocol handler, not >
the other way around.
Maybe, but that's why I ask questions... Now read what you write:
... the protocol handlers simply ask the last input filter to give it >
data ...
Still, the protocol handl
On Mar 9, 2006, at 6:13 PM, yperl wrote:
sub handler {
my $r =shift;
# tell the client what's coming
$r->content_type('text/html');
# set the location
$r->header_out( Location => 'http://www.google.fr' );
return Apache2::Const::REDIRECT;
}
$r>headers_out->set(Location =>
If that's not working I'd give err_headers_out_ a try:
http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_err_headers_out_
Tom
yperl wrote:
> Hi All!
>
> I would like to do a redirect from a PerlAccessHandler.
> With mod_perl1 to below code works.
> But how to achieve the same thing
Hi All!
I would like to do a redirect from a PerlAccessHandler.
With mod_perl1 to below code works.
But how to achieve the same thing with mod_perl2?
sub handler {
my $r =shift;
# tell the client what's coming
$r->content_type('text/html');
# set the location
$r->header_out( Location => 'htt
Torsten Foertsch wrote:
> On Friday 24 February 2006 21:06, Philippe M. Chiasson wrote:
>
>>Yeah, I noticed, as it doesn't apply cleanly against svn HEAD. Could you
>>checkout http://svn.apache.org/repos/asf/perl/modperl/trunk/ and generate
>>your patch against it instead ? It'll make it much easi
Bill Whillers wrote:
> Versions:
> Apache/2.0.54
> mod_perl/2.0.1
>
> Where can I verify:
In mod_perl-1.x, these options were either compiled in or not.
In mod_perl-2.x, they can be enabled/disabled per-server.
> PERL_CHILD_INIT=1
use Apache2::ServerUtil ();
my $s = $r->serv
Title: RE: Protocol Philosophy
> You lost it here, Chris. Input filters feed the protocol handler, not > the other way around.
Maybe, but that's why I ask questions... Now read what you write:
> ... the protocol handlers simply ask the last input filter to give it > data ...
Still, the
Thanks for the advices Fred.
>> 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
>> (http://perl.apache.org/docs/2.0/user/porting/), but unfortunatelly, I
>> haven't
>> found solutions to my simple problem
On Thursday 09 March 2006 04:15, Tyler MacDonald wrote:
> Foo Ji-Haw <[EMAIL PROTECTED]> wrote:
> > The basis for the need is because I am thinking of having my process
> > call itself (but another uri) to activate another process.
> >
> > Appreciate any tips you can offer. Thanks.
>
> Acco
[EMAIL PROTECTED] 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
(http://perl.apache.org/docs/2.0/user/porting/), but unfortunatelly, I haven't
found solutions to my simple problems.
1. How can I read a coo
Hi All!<[EMAIL PROTECTED]>I'm planing to port a web application for mod_perl1 ro mod_perl2.
I've carefully read to porting pages related to that
(http://perl.apache.org/docs/2.0/user/porting/), but unfortunatelly, I haven't
found solutions to my simple problems.
1. How can I read a cookie
14 matches
Mail list logo