At 07:16 PM 6/3/2002, you wrote: >On Sun, Jun 02, 2002 at 02:46:40PM -0700, Justin Erenkrantz wrote: > > Is it permissible for a subrequest (r->main != NULL) to read > > input data from the client? > > > > My current thought is only the original request can do that. > > > > Am I right or am I wrong? -- justin > >You might end up doing an "internal redirect" or somesuch to a subrequest to >have it process the thing. In which case, it is perfectly acceptable for >that guy to read the body. > >The basic story is that if you "run" a subrequest, then it can (and probably >*should*) consume the body. If you mere prepare a subrequest (so that you >can look at the status of that prep), then it should absolute *not* read the >body.
Subreq's preped just to test a uri mapping and such pass NULL for the next filter arg to ap_sub_req_lookup_foo(). For REAL requests, the next filter arg is never NULL. Does that help the logic?
