Php packet grabbing problem

address

http://interface.yy.com/hls/new/get/41724742/41724742/1200?source=wapyy&callback=jsonp2

header

Host:interface.yy.com
Pragma:no-cache
Referer:http://wap.yy.com/

use the online post tool http://coolaf.com/ to return the result

jsonp2({"height":600,"width":800,"code":0,"hls":"http://proxy.hls.yy.com/livesystem/15013_xv_41724742_41724742_0_0_0-15013_xa_41724742_41724742_0_0_0.m3u8?org=yyweb&uuid=4fe61cce5876403f99b0a4e1cceaa57c&t=1529036256&tk=5514ec813a91489064055d62d66492c2"})

but use the php you wrote to grab the package and return 404

.
jsonp2({"code":1,"hls":"404"})

is there a big god to help? the following code

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://interface.yy.com/hls/new/get/41724742/41724742/1200?source=wapyy&callback=jsonp2");
$headx = array();
$headx = array(
    "Host:interface.yy.com",
    "Pragma:no-cache",
    "Referer:http://wap.yy.com/",
);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headx);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //
$x = curl_exec($ch);
curl_close($ch);
var_dump($x);
Mar.20,2021

useragent set


how to play the N3u8 of YY LVB. I added it to the video tag and reported a 401 error

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b33022-2b5d8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b33022-2b5d8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?