Hi, I am this script in PHP to automatically open .mpd files and it works very well. But now I have others for which I need to include the security key as they recommend that I should handle this.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $hls_link);
curl_setopt_array($ch, [
CURLOPT_URL => $hls_link,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_NOBODY => true
]);
$result=curl_exec($ch);
$location_header = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);