Когда я пытаюсь сделать curl_exe c, я получаю ошибку:
WebCP FastCGI FAIL: No environment variables found.
Код:
$body = 'text content';
$curl_url = 'https://example.org/api/';
$myCurl = curl_init();
$curl_headers = array('content-type' => 'text/plain');
curl_setopt_array($myCurl, array(
CURLOPT_URL => $curl_url,
CURLOPT_HTTPHEADER => $curl_headers,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_POSTFIELDS => $body
));
$response = curl_exec($myCurl);
print_r($response);
curl_close($myCurl);
PHP 7,4 Apache.