httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Bailey <eds.mailing.list.acco...@gmail.com>
Subject [users@httpd] is it possible to modify the body of a http post using a input filter?
Date Sun, 12 Jun 2011 20:15:26 GMT
Greetings,

I have been trying without success to create an input filter that would
dynamically modify the body of a http post in order to fix a customer
application issue until DEV can come up with a fix. I have seen very few
examples of anyone using SetInputFilter so I was wondering if I am not
understanding the documentation or the capabilities of an input filter. I
know using a filter is an expensive operation, but this is a low volume
customer and our web servers have plenty of spare resources.

Here are the details and the workflow

We are using RHEL 5.2 httpd 2.2.3-11

If the filter works then mod_proxy would direct the post to the appropriate
application server.

In the virtualhost I have defined the following

##########################################

 ExtFilterDefine route mode=input intype=text/xml cmd="/bin/sed
s/<CustomerId>001500<\/CustomerId>/<CustomerId>001500<\/CustomerId><customerId>001500<\/customerId>/g"

<Directory />
        Options FollowSymLinks
        AllowOverride None
        Order Allow,Deny
        Allow from all
        SetInputFilter route
        ExtFilterOptions LogStderr DebugLevel=2
    </Directory>

##########################################

Is this the correct setup for creating a input filter?

Thanks in advance for any advice. I have never setup an input filter before
so this is a new option for me.

Thanks

Ed

Mime
View raw message