s4:lib/http: add support for http POST
authorRalph Boehme <slow@samba.org>
Wed, 3 Apr 2019 12:33:12 +0000 (14:33 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 7 Aug 2019 12:54:40 +0000 (12:54 +0000)
Even though GET would work as well, only adding POST, as that's the only method
that's going to be exersized in code and tests (RPC mdssvc elasticsearch
backend).

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Samuel Cabrero <scabrero@suse.de>
source4/lib/http/http.c

index 2d1f635d3808caa94dca37f7de5b4122add5aa6b..6be053136c837c1b185ecf18a2caf4d3977667ae 100644 (file)
@@ -656,6 +656,9 @@ static const char *http_method_str(enum http_cmd_type type)
        const char *method;
 
        switch (type) {
+       case HTTP_REQ_POST:
+               method = "POST";
+               break;
        case HTTP_REQ_RPC_IN_DATA:
                method = "RPC_IN_DATA";
                break;