You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dwayne Miller <dm...@espgroup.net> on 2001/12/13 16:40:06 UTC

Help writing a filter

Where would I find examples and docs for writing a filter that could...

examine and potentially re-write form variables posted by client
examine and potentially re-write url variables posted by client
create some new cgi variables and publish them
do all of this before any other request processing module is run


Re: Help writing a filter

Posted by Eli Marmor <ma...@netmask.it>.
Dwayne Miller wrote:

> Where would I find examples and docs for writing a filter that could...

Read Ryan's series:
===================
http://www.onlamp.com/pub/a/apache/2001/08/23/apache_2.html
http://www.onlamp.com/pub/a/apache/2001/09/13/apache_2.html
http://www.onlamp.com/pub/a/apache/2001/09/20/apache_2.html

There are attached samples:
===========================
http://www.onlamp.com/apache/2001/09/13/examples/mod_swap.c
http://www.ntrnet.net/~rbb/mod_apachecon.c

(the last one can't be followed from the link in the article; There is
a broken link at onLamp, so you must use the URL I gave here)

A reference about filters (!):
==============================
http://groups.yahoo.com/group/new-httpd/message/26052

Also, try to dig in http://httpd.apache.org/docs-2.0/developer/

And, the BEST resourse for filters, is...

...you guessed!  The sources, of course!

-- 
Eli Marmor
marmor@netmask.it
CTO, Founder
Netmask (El-Mar) Internet Technologies Ltd.
__________________________________________________________
Tel.:   +972-9-766-1020          8 Yad-Harutzim St.
Fax.:   +972-9-766-1314          P.O.B. 7004
Mobile: +972-50-23-7338          Kfar-Saba 44641, Israel