使用php的curl函数post返回值为301永久迁移的问题。(301 Moved Permanently)

本文链接:https://blog.csdn.net/Angus_01/article/details/82467652
添加一行curl_setopt:

curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);
1
这句话的意思是当遇到location跳转时,直接抓取跳转的页面。

posted @ 2019-08-28 11:07  烂笔头-老易  阅读(1683)  评论(0编辑  收藏  举报