curl 301解决

问题描述:

使用curl get访问接口返回301跳转 无法访问数据。

解决:

curl_setopt($handle, CURLOPT_FOLLOWLOCATION, 1);
posted on 2018-12-10 16:29  降魔  阅读(1059)  评论(0)    收藏  举报