Stream always offline (stream web status)

The docs say that the value for CURLOPT_RETURNTRANSFER and CURLOPT_HEADER in curl_setopt should be a bool, not 0 or 1.

curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

And you’re also overwriting CURLOPT_RETURNTRANSFER in curl_setopt_array with the additional statements. I suggest combining them all into one curl_setopt_array or individual curl_setopt's for clarity and make sure to prune the duplicates.

1 Like