From: Thierry FOURNIER Date: Wed, 20 May 2015 13:50:54 +0000 (+0200) Subject: DOC: http: req.body_param documentation X-Git-Tag: v1.6-dev2~100 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9826c7781a25fbf9b84c8a139b28eaa395d16eb4;p=thirdparty%2Fhaproxy.git DOC: http: req.body_param documentation This patch adds the req.body_param documentation. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index 6cac747b3b..0d9051c2f6 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -12327,6 +12327,18 @@ req.body : binary "option http-buffer-request". In case of chunked-encoded body, currently only the first chunk is analyzed. +req.body_param([) : string + This fetch assumes that the body of the POST request is url-encoded. The user + can check if the "content-type" contains the value + "application/x-www-form-urlencoded". This extracts the first occurrence of the + parameter in the body, which ends before '&'. The parameter name is + case-sensitive. If no name is given, any parameter will match, and the first + one will be returned. The result is a string corresponding to the value of the + parameter as presented in the request body (no URL decoding is + performed). Note that the ACL version of this fetch iterates over multiple + parameters and will iteratively report all parameters values if no name is + given. + req.body_len : integer This returns the length of the HTTP request's available body in bytes. It may be lower than the advertised length if the body is larger than the buffer. It