Curl :
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "site", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "{\n\t\"signal\": \"restart\"\n}", CURLOPT_HTTPHEADER => array( 'Accept: application/json', 'Content-Type: application/json', "Authorization: Bearer api key" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } ?>