如果curl爬取过程中,设置CURLOPT_FOLLOWLOCATION为true,则会跟踪爬取重定向页面,否则,不会跟踪重定向页面。

转载自:

http://blog.csdn.net/daijiguo/article/details/50259917