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);