$httpcode

This commit is contained in:
CHIEFSOFT\ameye
2025-01-26 16:00:56 -05:00
parent 15a5b7f203
commit 3631ec1fb1
+3 -1
View File
@@ -181,7 +181,7 @@ abstract class BaseController extends Controller
# Return response instead of printing.
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
# Fetch the headers, not the body content:
# Send request.
$result = curl_exec($ch);
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
@@ -189,6 +189,8 @@ abstract class BaseController extends Controller
curl_close($ch);
log_message('critical', "***** ***** Provision :: ansibleProvision($httpcode) ".$httpcode);
if ($httpcode != "204") {
return "Login failed! $result";
}