Hello,
please check if a testing connection works with the script like:
<?php
$initurl = 'https://www.yourdomain.com';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $initurl);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
if($errno = curl_errno($ch)) {
$error_message = curl_error ($ch);
echo "cURL error ({$errno}):\n {$error_message}";
}
$info = curl_getinfo($ch);
print_r($info);
$fdata = curl_exec($ch);
print_r($fdata);
curl_close($ch);