Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 46131 invoked from network); 10 Aug 2009 23:45:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Aug 2009 23:45:14 -0000 Received: (qmail 64418 invoked by uid 500); 10 Aug 2009 23:45:20 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 64337 invoked by uid 500); 10 Aug 2009 23:45:20 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 64326 invoked by uid 99); 10 Aug 2009 23:45:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 23:45:20 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [194.242.35.75] (HELO dns-factory.at) (194.242.35.75) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 23:45:11 +0000 Received: from [172.17.100.14] apache@gknw.net [84.63.21.190] by dns-factory.at with NetMail SMTP Agent $Revision: 8582 $ on Novell NetWare via secured & encrypted transport (TLS); Tue, 11 Aug 2009 01:44:41 +0200 Message-ID: <4A80B0E0.2080703@apache.org> Date: Tue, 11 Aug 2009 01:44:32 +0200 From: Guenter Knauf User-Agent: Thunderbird 2.0.0.22 (X11/20090605) MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: Help in Understanding Apache Filter References: <280546.93407.qm@web111416.mail.gq1.yahoo.com> In-Reply-To: <280546.93407.qm@web111416.mail.gq1.yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi, Mansour schrieb: > I=E2=80=99m working in master project and I need to write an apache fil= ter in > this project. > =20 > I want to understand how to write a filter in apache, I read tens of > tutorials and books and I did not find any thing simple and clear, I go= t > confused! > =20 > For now I need a simple tutorial on how I can write a simple apache > filter? Let say the filter is an output filter that will inject a text > to the output. Also, I don=E2=80=99t prefer to use mod_perl in the filt= er. > =20 > How I can write this filter? How I can compile it? Is apxs will work to= > configure the filter? > =20 > Do you know a good tutorial that will help me in understanding how to > write filter for apache? Or can any one help me with that? > =20 > I learned how to write a handler, but I didn't understand how I can mak= e > the filter work. have you also read throw the httpd manual? http://httpd.apache.org/docs/2.2/filter.html perhaps take a look at mod_substitute docu and its source: http://httpd.apache.org/docs/2.2/mod/mod_substitute.html maybe this docu is also helpful: http://httpd.apache.org/docs/2.2/mod/mod_filter.html two other small filter modules are in ./modules/experimental ... G=C3=BCnter.