添加一行curl_setopt:
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);
这句话的意思是当遇到location跳转时,直接抓取跳转的页面。
参考链接:
https://blog.csdn.net/Angus_01/article/details/82467652
https://blog.csdn.net/linux4fun/article/details/50014961
添加一行curl_setopt:
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);
这句话的意思是当遇到location跳转时,直接抓取跳转的页面。
参考链接:
https://blog.csdn.net/Angus_01/article/details/82467652
https://blog.csdn.net/linux4fun/article/details/50014961
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。