Re: Multiple Handlers

2005-08-31 Thread Martin Moss
It doesn't seem to work... This was the original solution I tried.. Here is the code:- if (Apache->can('set_handlers')) { print STDERR "CAN PUSH HANDLERS OK\n"; } else { print STDERR "CANNOT PUSH HANDLERS OK\n"; } my $list = $r->get_handlers( 'PerlHandler'

Re: Multiple Handlers

2005-08-31 Thread Geoffrey Young
Martin Moss wrote: > Have an awful suspicion the book I used suggested > doing it the other way around? Would that make a > difference? > > $r->handler('perl-script'); > $r->set_handlers(PerlHandler => [ My::Handler ]); none whatsoever. keep in mind that you can only call set_handlers() during

Re: Multiple Handlers

2005-08-31 Thread Martin Moss
Have an awful suspicion the book I used suggested doing it the other way around? Would that make a difference? $r->handler('perl-script'); $r->set_handlers(PerlHandler => [ My::Handler ]); Marty --- Geoffrey Young <[EMAIL PROTECTED]> wrote: > > > > I originally tried using $r->set_handlers.

Re: Multiple Handlers

2005-08-31 Thread Geoffrey Young
> I originally tried using $r->set_handlers. in my > PerlAuthenHandler. But this made absolutely no > difference to the current request... if you want to set_handlers() for the PerlHandler phase you need two calls $r->set_handlers(PerlHandler => [ My::Handler ]); $r->handler('perl-script')