mirror of
https://github.com/unraid/webgui.git
synced 2026-04-24 11:19:25 -05:00
curl_socket: allow GET/POST request
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*/
|
||||
?>
|
||||
<?
|
||||
function curl_socket($socket, $url, $message) {
|
||||
function curl_socket($socket, $url, $message='') {
|
||||
$com = curl_init($url);
|
||||
curl_setopt_array($com, [CURLOPT_UNIX_SOCKET_PATH => $socket, CURLOPT_POST => 1]);
|
||||
if ($message) curl_setopt_array($com, [CURLOPT_POSTFIELDS => $message, CURLOPT_RETURNTRANSFER => 1]);
|
||||
|
||||
Reference in New Issue
Block a user