Unfortunately, I cannot use either fopen or file_get_contents, so my working script has become a broken one using cURL:
$ch = curl_init(); curl_setopt($ch, C
By default curl_exec returns a boolean. You need to set the CURLOPT_RETURNTRANSFER option to 1 or true to get the transfer payload returned.
curl_exec
CURLOPT_RETURNTRANSFER
1
true