curl 301解决

问题描述:

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

解决:

curl_setopt($handle, CURLOPT_FOLLOWLOCATION, 1);
原文地址:https://www.cnblogs.com/fanhuo/p/10097239.html