Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 48369 invoked from network); 18 Aug 2009 06:38:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Aug 2009 06:38:51 -0000 Received: (qmail 99018 invoked by uid 500); 18 Aug 2009 06:39:09 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 98969 invoked by uid 500); 18 Aug 2009 06:39:09 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 98959 invoked by uid 99); 18 Aug 2009 06:39:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 06:39:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [64.34.252.43] (HELO nauticaltech.com) (64.34.252.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 06:38:59 +0000 Received: (qmail 9751 invoked by uid 210); 17 Aug 2009 22:46:42 -0700 Received: from 173.51.245.65 by raptor (envelope-from , uid 201) with qmail-scanner-1.25st (clamdscan: 0.94.2/9704. spamassassin: 3.2.1. perlscan: 1.25st. Clear:RC:1(173.51.245.65):. Processed in 0.064004 secs); 18 Aug 2009 05:46:42 -0000 Received: from unknown (HELO ?172.16.5.120?) (173.51.245.65) by 0 with SMTP; 17 Aug 2009 22:46:42 -0700 Message-ID: <4A8A4C6D.5050409@nauticaltech.com> Date: Mon, 17 Aug 2009 23:38:37 -0700 From: Michael Spiegle User-Agent: Thunderbird 2.0.0.22 (X11/20090605) MIME-Version: 1.0 To: modules-dev@httpd.apache.org Subject: Re: [Fwd: Re: Having some issues with subrequests and filters] References: <4A874E1B.7070301@apache.org> In-Reply-To: <4A874E1B.7070301@apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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?