Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 97200 invoked from network); 1 Feb 2009 20:08:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2009 20:08:54 -0000 Received: (qmail 6312 invoked by uid 500); 1 Feb 2009 20:08:44 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 6293 invoked by uid 500); 1 Feb 2009 20:08:43 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 6284 invoked by uid 99); 1 Feb 2009 20:08:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Feb 2009 12:08:43 -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: domain of solutio@gmail.com designates 74.125.92.147 as permitted sender) Received: from [74.125.92.147] (HELO qw-out-1920.google.com) (74.125.92.147) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Feb 2009 20:08:36 +0000 Received: by qw-out-1920.google.com with SMTP id 9so329274qwj.48 for ; Sun, 01 Feb 2009 12:08:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:references :in-reply-to:subject:date:mime-version:content-type :content-transfer-encoding:x-priority:x-msmail-priority:importance :x-mailer:x-mimeole; bh=XOKvPGgD4jnh0d/qIte2WSEYKtYSPC+3cmutiX0ukGY=; b=MJ1ROOVUQja47uoKPnXS/q1WE/rqf7meryMZ+am18X+VN11rCCTMRqSrjQwBkX6bXr DLQbEOEzgF2z4Zusoh4JmikuMWEyyl1XU1oHRAQQnLOHtu70oaVqd1jbGw4jzOscVG/S FZ+FSd39jm2ZqbbqpmrpMQwOQ1iZRd1goyJpA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:references:in-reply-to:subject:date:mime-version :content-type:content-transfer-encoding:x-priority:x-msmail-priority :importance:x-mailer:x-mimeole; b=O0oTBc47pYWKMFQxbYcrTWsKTD0TaPhXxtkL7vffmmMnICVNo0OJPY0YVWXtqDwJgT WJ3CL2EDMcIo/9lhTHG4R91FYpULYW1T0+qIGPOcxo9ezbvw7v4TEwSzlQoEeOUJTy2l 7uKV6vyrhEAWlwT9GD/eo1qM2xQZ8syHcvuSc= Received: by 10.215.15.6 with SMTP id s6mr2884725qai.117.1233518895149; Sun, 01 Feb 2009 12:08:15 -0800 (PST) Received: from ICAD820ASAIP (adsl-074-181-114-066.sip.bna.bellsouth.net [74.181.114.66]) by mx.google.com with ESMTPS id 6sm11794410ywn.57.2009.02.01.12.08.13 (version=SSLv3 cipher=RC4-MD5); Sun, 01 Feb 2009 12:08:13 -0800 (PST) Message-ID: <2EE55F3529834C6CAC2079FE1D6B6B43@ICAD820ASAIP> From: "Solutio at Gmail" To: References: <49856F8E.60504@ice-sa.com> <91A0A4334E244D1D962B6C44A46EC75A@ICAD820ASAIP> <4985F439.1050509@ice-sa.com> In-Reply-To: <4985F439.1050509@ice-sa.com> Date: Sun, 1 Feb 2009 14:08:11 -0600 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8050.1202 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8050.1202 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Capturing server response Gotcha. I haven't had to do that before, but I am sure I will figure that out. We will try this solution as well as setting up a proxy, to see which will have the least impact on the overall performance. Thanks heaps. -------------------------------------------------- From: "Andr� Warnier" Sent: Sunday, February 01, 2009 1:12 PM To: Subject: Re: [users@httpd] Capturing server response > Solutio at Gmail wrote: >> Thank you for the advice and introduction to the forum rules. I >> "lowercased" the subject. >> >> As for the options available, we would like to avoid sending the same >> request to the web server (Apache) if possible. Sure, LWP could emulate a >> web client, but our goal is to fork the very same HTTP response that >> Apache sends to the browser, into a file, rather than repeating the >> request. One of the reasons being that as I mentioned, the data in the >> response can already be different. >> > Allright. > First, you could have a look at > http://httpd.apache.org/docs/2.2/mod/mod_dumpio.html > but I don't think this is really what you want. > > If you want to be more selective, and choose to which file you are dumping > these responses, I think you're going to have to use (and probably create) > your own output filter. > > For me, the easiest way would be to do that using mod_perl. > Have a look here : > http://perl.apache.org/docs/2.0/api/Apache2/Filter.html > and here > http://perl.apache.org/docs/2.0/user/handlers/filters.html#Adding_OutputFilters_Dynamically > > Is that in your league ? > > Basically, the idea would be that you have a first module that is inserted > somewhere early in the request processing, and based on some request > characteristic, decides if yes or no this request's output should be > logged. You probably do not want to do this permanently, not for all > requests, because (a) it would have a major impact on server performance > and (b) it would generate huge output volumes. > (That module could just be mod_setenvif, to set a variable if you want > logging). > > Second, you would have an output filter that actually does the logging > work, if it has been turned on by the module above. > mod_perl allows you to dynamically insert an output filter just for the > current request, or not, depending. > On the other hand, if your filter is configured to be there statically, > then you would want to set some value whereby it can just return DECLINE > to Apache, so that it will be bypassed for the current request. > > Still with me ? > > > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org