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.) & yacc, Second Edition
Apache Reference Online:

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:

Then, there is…