On Tue, Oct 30, 2001 at 03:56:13AM +0000, alan milligan wrote: > I am curious though. I have experimented with the Apache::is_main() > function over the last few days, and can't quite figure it out. I would > have presumed that this would indicate a direct GET/POST request as opposed > to a sub-request being a URI embedded within the resultant page. This does > not appear so, and I get for example, <IMG> tags embedded in a page being > designated as main requests. > > Would anybody care to elucidate on these definitions?
Before anyone does, please have a look at the online chapters of the excellent book "Writing Apache modules with Perl and C": http://www.modperl.com/ Chapter 6 is several long examples of exactly what you're trying to do. (I recommend buying the book - its v. useful). Chapter 9 has documentation on the Apache perl API - "perldoc Apache" will give you the documentation specific to your installed version of Apache.pm The other one to look at is the function is_initial_req() which is slightly different. I use is_main() because I still want to do authentication on internal redirects but not on subrequests. -- Andrew O'Brien Product Engineer email: [EMAIL PROTECTED] Switch Online Group Pty Limited phone: +61 2 9299 1133 ABN 89 092 286 327 fax: +61 2 9299 1134 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]