]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http: add new "capture" action for http-request
authorWilly Tarreau <w@1wt.eu>
Fri, 8 May 2015 13:27:59 +0000 (15:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 May 2015 13:43:54 +0000 (15:43 +0200)
commita9083d07223af9f3818d0f72507862103acd94be
tree618d54afd52641e5bc72318160beb84f3a1457c8
parentf9873ba63a6c02e9350d71c8b85f5e5c46c68f46
MEDIUM: http: add new "capture" action for http-request

This is only possible in frontends of course, but it will finally
make it possible to capture arbitrary http parts, including URL
parameters or parts of the message body.

It's worth noting that an ugly (char **) cast had to be done to
call sample_fetch_string() which is caused by a 5- or 6- levels
of inheritance of this type in the API. Here it's harmless since
the function uses it as a const, but this API madness must be
fixed, starting with the one or two rare functions that modify
the args and inflict this on each and every keyword parser.
(cherry picked from commit 484a4f38460593919a1c1d9a047a043198d69f45)
doc/configuration.txt
src/proto_http.c