curl 301解决

问题描述:

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

解决:

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