Cloudfare :
I never had to set a ssl cert before to get it to work, im just trying it as a possible solution.
The site is on free hosting , https://mypodcast.is-great.net/
The cron job is at https://mypodcast.is-great.net/cron.php to see the errors
Like i said nothing was changed in my code
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_HTTPHEADER => array('Client-ID: ' . (api_key_removed)),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_URL => https://api.twitch.tv/kraken/streams/(removed),
) );
$tresponse = curl_exec($ch);
$curl_error = curl_error($ch);
$curl_errno = curl_errno($ch);
$data = curl_exec($ch);
curl_close($ch);
if ($curl_errno > 0) { echo "<br>cURL Error ($curl_errno): $curl_error" ;}
Working version on my home network on a raspberry pi : https://podview.ddns.net/