> 1 - Why was no documentation for this method found in the manpage for
> Apache::Request? Where should I have looked for docs on this?

    perldoc Apache

There are some Apache API docs on ap_sub_req_lookup_uri here:

    http://httpd.apache.org/docs/misc/API.html#req_orig

Though they may not help much in your situation, as they indicate that each
sub-request function "constructs a new request_rec structure and processes
it as you would expect". :)

> 2 - I did manage to find some docs for this in Ch. 4 of the
> Stein/Maceachern book, but am wondering why lookup_uri() goes through
> all phases of request processing up to but not including the content
> handler. It would seem that looking up a URI would only need to go
> through the URI translation phase of the subrequest to lookup a URI.

>From 'perldoc Apache':

       Apache provides a sub-request mechanism to lookup a uri or
       filename, performing all access checks, etc., without
       actually running the response phase of the given request.

So presumably it is important that sub-requests get run through standard
authentication/authorization/access checks for that particular URI. Among
other things.

bye,
Ben

Reply via email to