]> git.kaiwu.me - haproxy.git/commit
MINOR: haload: add -get/-head/-post options to select the HTTP method
authorFrederic Lecaille <flecaille@haproxy.com>
Wed, 19 Aug 2026 18:36:58 +0000 (20:36 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Mon, 24 Aug 2026 17:16:05 +0000 (19:16 +0200)
commitc764aa9641dc834dd63f24e161935c71dc76214d
tree148bc7d6b841554e0ec734c14a5d2e04a63d4312
parent50872daa6a857e82afc40b1c5161924aef4172d7
MINOR: haload: add -get/-head/-post options to select the HTTP method

Only GET (or HEAD globally via -I) could be sent before. Add -get,
-head and -post <size> as positional options, like -h(0|1|2|2c|3), to
pick the method and, for POST, the body size, per URL.

The method and body size are stored per URL path (struct hld_path) so
distinct paths sharing the same server address keep their own
settings. The POST body is filled from a static buffer, streamed
across several output buffers for large sizes, with a matching
Content-Length header.

Remove -I, superseded by -head. Update doc/haload.txt.
doc/haload.txt
include/haproxy/haload.h
include/haproxy/hldstream-t.h
src/haload.c
src/haload_init.c