Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 94066 invoked from network); 14 Nov 2007 17:34:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2007 17:34:38 -0000 Received: (qmail 38174 invoked by uid 500); 14 Nov 2007 17:34:24 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 38151 invoked by uid 500); 14 Nov 2007 17:34:24 -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 38140 invoked by uid 99); 14 Nov 2007 17:34:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2007 09:34:24 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [80.229.52.226] (HELO grimnir.webthing.com) (80.229.52.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2007 17:35:17 +0000 Received: from grimnir.webthing.com (localhost [127.0.0.1]) by grimnir.webthing.com (Postfix) with ESMTP id E0AB12137 for ; Wed, 14 Nov 2007 17:34:04 +0000 (GMT) Date: Wed, 14 Nov 2007 17:34:04 +0000 From: Nick Kew To: modules-dev@httpd.apache.org Subject: Re: How to request a file in apache module? Message-ID: <20071114173404.7a56f82b@grimnir> In-Reply-To: <50813.29277.qm@web30901.mail.mud.yahoo.com> References: <753799.80653.qm@web30909.mail.mud.yahoo.com> <50813.29277.qm@web30901.mail.mud.yahoo.com> Organization: WebThing X-Mailer: Sylpheed-Claws 2.5.0-rc3 (GTK+ 2.10.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Wed, 14 Nov 2007 09:24:54 -0800 (PST) John Zhang wrote: > I have the follow need: > While processing a request in my module (handler or > output filter), I need to ask apache to give me the > content of another page. Is there any way to do that, > or do I have to find the file and read it just within > my module? Take a look at mod_include's handling of . That shows how to include a file, and apply apache's default security model to it. -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/