> -----Original Message-----
> From: Mike Cameron [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 05, 2001 10:18 AM
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: push_handlers question
> 
> 
> Thanks for the suggestion, but what i really want to know is 
> why is the
> request object passed if I call the module directly from 
> http.conf and not
> when I use the push handlers method? Are the two methods not 
> functionally
> equivalent?  Everything works fine when the handler is set in 
> httpd.conf.

according to the mod_perl pocket reference (p20) method handlers do not get
the request object passed to them - Andrew suggests using a closure for
this.  Apache->request should work fine as well.

HTH

--Geoff

> 
> Mike
> 
> Geoffrey Young wrote:
> 
> > > -----Original Message-----
> > > From: Mike Cameron [mailto:[EMAIL PROTECTED]]
> > > Sent: Sunday, March 04, 2001 11:59 PM
> > > Cc: modperl
> > > Subject: push_handlers question
> > >
> > >
> > > I am trying to sub class Apache::AuthCookieURL and would 
> like to use
> > > $r->push_handlers(PerlAuthenHandler => My::Class->authenticate);
> > > the push_handler is set in a handler called from httpd.conf on the
> > > PerlInitHandler phase but the authenticate routine does not
> > > seem to be getting
> > > the apache request object passed to it as I get a can't call
> > > dir_config on an
> > > udefined value error.
> >
> > my $r = Apache->request;
> >
> > HTH
> >
> > --Geoff
> >
> > >
> > > I'm sure I am missing something simple but can someone point
> > > it out to me.
> > >
> > > Thanks
> > >
> 

Reply via email to