Re: Persisting data across handlers

2006-03-09 Thread Jonathan Vanasco
pnotes http://perl.apache.org/docs/2.0/api/Apache2/RequestUtil.html#C_pnotes_

Persisting data across handlers

2006-03-09 Thread Vipul Ved Prakash
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

Re: Modperl2 + PerlAccessHandler + Redirect

2006-03-09 Thread Jonathan Vanasco
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

Re: Protocol Philosophy

2006-03-09 Thread Stas Bekman
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

Re: Modperl2 + PerlAccessHandler + Redirect

2006-03-09 Thread Jonathan Vanasco
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 =>

Re: Modperl2 + PerlAccessHandler + Redirect

2006-03-09 Thread Tom Schindl
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

Modperl2 + PerlAccessHandler + Redirect

2006-03-09 Thread yperl
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

Re: what is the best way to do ...

2006-03-09 Thread Philippe M. Chiasson
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

Re: PERL_CHILD_INIT

2006-03-09 Thread Philippe M. Chiasson
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

RE: Protocol Philosophy

2006-03-09 Thread Chris Werner
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

Re: Re: Modperl2 question

2006-03-09 Thread yperl
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

Re: can mp2 flush response output to the client, then continue processing?

2006-03-09 Thread Torsten Foertsch
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

Re: Modperl2 question

2006-03-09 Thread Fred Moyer
[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

Modperl2 question

2006-03-09 Thread yperl
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