if you catch http://interface.yy.com/hls/new/get/41724742/41724742/1200?source=wapyy&callback=jsonp2
, return 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=381d09547ed340c58413143ac4448bbe&t=1529034144&tk=b295cfe3c7fee95816cc8e7a017b094a"})
if you grab the package with php, you will return
.jsonp2({"code":1,"hls":"404"})
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[] = "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);
I don"t seem to write the header correctly.