当试图重现从下面的代码中拯救的url时,我得到了403错误,但当直接打开url时,它可以工作https://www.blogger.com/video.g?token=AD6v5dz8fGJIfh9owHm8_SRdSkqD8g5Y9pnwKdDak1KzDrzPQG1aJigXD2AK-G_QD2-NQomPJXMV4aG_eG7ft_abAK07fZbY_I25kkdfgOguD0lrU0y-qR1JdbQX7AYsm3XK7rOUBKCD
https://rr1---sn-p5qlsndr.googlevideo.com/videoplayback?expire=1649837590&ei=lRVWYvasO-aF_9EPw9Ct-As&ip=18.207.249.251&id=0278c50fe6a211d5&itag=22&source=blogger&mh=8g&mm=31&mn=sn-p5qlsndr&ms=au&mv=m&mvi=1&pl=16&susc=bl&eaua=do0w1CEA3T4&mime=video/mp4&vprv=1&dur=240.396&lmt=1649790419999233&mt=1649808299&txp=1311224&sparams=expire,ei,ip,id,itag,source,susc,eaua,mime,vprv,dur,lmt&sig=AOq0QJ8wRQIhALPcfgLupszvnU93pLJFJguqbl2i6bs-XOWTCHuU48-OAiBiHJkRFt0L3hGfz_rix-T4q1ZMFg_LuaKmQptafhNGdg%3D%3D&lsparams=mh,mm,mn,ms,mv,mvi,pl&lsig=AG3C_xAwRAIgVLt5vtKphkKg-tnC9qC4wIG8sQdfyA_rxdKuAqkSJUkCIHdz8F2p9c8Uk5GagGSKCqG5ksVc3zlo7efGBF1cKY30&title=Kaginado%202%20Epis%C3%B3dio%201
$url = "https://www.blogger.com/video.g?token=AD6v5dz8fGJIfh9owHm8_SRdSkqD8g5Y9pnwKdDak1KzDrzPQG1aJigXD2AK-G_QD2-NQomPJXMV4aG_eG7ft_abAK07fZbY_I25kkdfgOguD0lrU0y-qR1JdbQX7AYsm3XK7rOUBKCD";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$resp = curl_exec($curl);
curl_close($curl);
var_dump($resp);
当您从浏览器打开它时,您将发送更多的数据,如cookie或referrer。他们可能会检查这些信息
一种选择是在chrome中(或者可能在许多浏览器中(将请求复制为curl。在chrome中,您可以打开开发人员工具(View -> Developer -> Developer Tools
(,然后单击"网络"选项卡,然后可以查看网络请求。您可以右键单击其中一个,然后转到copy -> copy as curl
,该命令具有所有数据