Posts

Showing posts from August, 2006

Writing Apache 2.x Filters

I'm writing a Apache 2.x output filter to append arbitrary query parameter variables to all the urls in the response body. Some of the references online that helped me get started on the output filter are listed below. For the actual work of finding the url tags, extracting the url and appending the required query param, I'm using a Lex scanner. (no parser required).

Flex Resources:
GNUwin32 package of flex. (Oh! btw, I started off on windows. 'cuz we need it both on Windows nd Linux and I know it will surely work in Linux as I've used flex/bison in Linux before.)
http://gnuwin32.sourceforge.net/packages/flex.htmlex & yacc, Second Edition
http://www.oreilly.com/catalog/lex/
Apache Reference Online:

http://wendtstud1.hpi.uni-potsdam.de

This is the website. Most of the pages are in German; but you can make out.
The specific presentation I was talking about are here:
http://wendtstud1.hpi.uni-potsdam.de/sysmod-seminar/SS2003/presentations/

Then, there is http://f-m-c.org/proj…