On Tue, Feb 02, 2010 at 05:40:13PM +0100, Holger Just wrote: > Hi > > On 2010-02-02 16:19, Anthony D wrote: > > I understand that HAproxy can do L7 header manipulation, however I read > > in the manual that it doesn't touch the data contents. Are there any > > plans for adding this option? > > I can not speak for Willy, but as content manipulation (and also some > kinds of header manipulation) is very expensive in terms of CPU, memory > and latency I think this is not going to happen anytime soon or at all. > > Most people would agree that content rewriting is out of scope for a > load balancer at all.
Holger, you read my mind :-) > > If there isn't, does anyone have any open-source suggestions? I'm aiming > > to modify the response part of the data if that helps any. > > You might want to have a look at Privoxy (http://www.privoxy.org/) or > Proxomitron for Windows (http://www.proxomitron.info/ or > http://www.buerschgens.de/Prox/index.html (in German)) Also I'd say that it depends a lot on what people want to do. Modifying contents is almost always the wrong solution to a real problem, which makes the problem even worse and causes lots of side effects. Good examples are the apache modules which can rewrite links in pages, well *some* links, the most easily detectable ones... I've also heard about "netsed" or something like that which would basically be equivalent to the "sed" tool but on sockets. Never tried. Willy

