From e121d1a8a12fa3127ccd1fa1cea11c34cbe0e4b1 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 9 Feb 2024 10:19:35 +0100 Subject: [PATCH] proper POST request to curl --- src/http-mserv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http-mserv.c b/src/http-mserv.c index 7ad84b71f..ddffffd10 100644 --- a/src/http-mserv.c +++ b/src/http-mserv.c @@ -339,7 +339,8 @@ HMS_unlist (void) if (! hms) return 0; - curl_easy_setopt(hms->curl, CURLOPT_CUSTOMREQUEST, "POST"); + curl_easy_setopt(hms->curl, CURLOPT_POST, 1); + curl_easy_setopt(hms->curl, CURLOPT_POSTFIELDSIZE, 0); ok = HMS_do(hms); HMS_end(hms);