From e65bd73f67ca675a9d68a01e554bf0f384e746d6 Mon Sep 17 00:00:00 2001 From: bergware Date: Wed, 6 Dec 2023 09:22:07 +0100 Subject: [PATCH] curl_socket: allow GET/POST request --- emhttp/plugins/dynamix/include/publish.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/include/publish.php b/emhttp/plugins/dynamix/include/publish.php index 26fe36bdd..5cafba3b3 100644 --- a/emhttp/plugins/dynamix/include/publish.php +++ b/emhttp/plugins/dynamix/include/publish.php @@ -13,8 +13,8 @@ $socket, CURLOPT_POST => 1]); - if ($message) curl_setopt_array($com, [CURLOPT_POSTFIELDS => $message, CURLOPT_RETURNTRANSFER => 1]); + curl_setopt_array($com, [CURLOPT_UNIX_SOCKET_PATH => $socket, CURLOPT_RETURNTRANSFER => 1); + if ($message) curl_setopt_array($com, [CURLOPT_POSTFIELDS => $message, CURLOPT_POST => 1]]); $reply = curl_exec($com); curl_close($com); return $reply;