httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Spiegle <m...@nauticaltech.com>
Subject Re: [Fwd: Re: Having some issues with subrequests and filters]
Date Tue, 18 Aug 2009 06:38:37 GMT
Nick Kew wrote:
> Michael Spiegle wrote:
>> Hello,
>> I have a module I am writing which implements a content-generator and
>> a filter.  If I make a sub-request from within my content-generator,
>> the filter's (request_rec*)f->r only points to the original request.
>> How do I access the current sub-request from within my filter?
>
> How do you know the subrequest exists at the point where you access
> it from the filter?
>
> Put whatever you need on your module's filter's context.
>


I was hoping that when my filter starts receiving data for a subrequest, 
the request_rec* attached to the filter would indicate that it was a 
subrequest via f->r->main not being NULL.  It seems like you can use 
that logic everywhere else, so why not in the filter context?

Mime
View raw message