Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
youshandefeiyang authored Jan 15, 2024
1 parent 4a4a80d commit 857dde3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PHP/huya.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ function getLiveUrl($rid, $cdn, $cdnType, $mediaurl)
$liveurl = "https://m.huya.com/" . $rid;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $liveurl);
curl_setopt($ch, CURLOPT_ENCODING, "gzip");
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 16_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Mobile/15E148 Safari/604.1",
Expand Down

0 comments on commit 857dde3

Please sign in to comment.