$postdata = array('scenario' => "'https://vmndmdl.foxsports.com.au/api/web/asset/13368/play?app_name=webapp&protocol=hls' --compressed -X POST -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0' -H 'Accept: application/json;v=2' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'authorization: Bearer d9546de1-cbda-4469-b2f4-121a0b1237fc' -H 'x-vimond-tenant: watchnrl' -H 'Content-Type: application/json;v=2' -H 'Origin: https://www.watchnrl.com' -H 'Connection: keep-alive' -H 'Referer: https://www.watchnrl.com/' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: cross-site' -H 'Priority: u=0' -H 'TE: trailers' --data-raw '{"playRequest":{"authorize":{"device":{"udid":"1f9675fe-2b61-455d-8852-7e859001518b","label":"Firefox Windows 10"}}}}",)'; $data = http_build_query($postdata); $curl = curl_init(); curl_setopt($curl, CURLOPT_VERBOSE, false); curl_setopt($curl,CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_URL, "https://vmndmdl.foxsports.com.au/api/web/asset/13368/play?app_name=webapp&protocol=hls"); curl_setopt($curl,CURLOPT_POSTFIELDS, $data); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { return $response; }