Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 75879 invoked from network); 9 Feb 2009 18:52:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Feb 2009 18:52:27 -0000 Received: (qmail 39402 invoked by uid 500); 9 Feb 2009 18:52:22 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 39382 invoked by uid 500); 9 Feb 2009 18:52:22 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 39373 invoked by uid 99); 9 Feb 2009 18:52:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 10:52:22 -0800 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.22.103.163] (HELO li16-163.members.linode.com) (64.22.103.163) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 18:52:15 +0000 Received: from localhost ([127.0.0.1]) by li16-163.members.linode.com with esmtp (Exim 4.69) (envelope-from ) id 1LWbDk-0004HC-9q; Mon, 09 Feb 2009 10:51:04 -0800 Date: Mon, 9 Feb 2009 10:51:04 -0800 (PST) From: Mark Hedges To: Solutio at Gmail cc: modperl@perl.apache.org Subject: Re: Capturing Apache response In-Reply-To: Message-ID: References: User-Agent: Alpine 1.10 (DEB 962 2008-03-14) X-Ray: Vision MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: hedges@scriptdolphin.org X-SA-Exim-Scanned: No (on li16-163.members.linode.com); SAEximRunCond expanded to false X-Virus-Checked: Checked by ClamAV on apache.org On Sun, 8 Feb 2009, Solutio at Gmail wrote: > I wonder if there is a workaround for this without adding > a connection filter? Try using something like the all-in-one FilterSnoop handler on the same page at http://perl.apache.org/docs/2.0/user/handlers/filters.html#All_in_One_Filter - I had good results with this. You do have to use it as a connection output filter but so what. Works for me. > Another question is what the best way would be to pass on > arguments to the filter so that we could tell it where to > store the response? Probably you want to implement config directives with Apache2::Module. Some good examples are in Apache2::Controller::Directives (as a separate package) or Apache2::AuthenOpenID (built into a handler package). Also see http://perl.apache.org/docs/2.0/user/config/custom.html#Creating_and_Using_Custom_Configuration_Directives . Mark