Home > Backend Development > PHP Tutorial > CURL 抓取页面失败解决方法

CURL 抓取页面失败解决方法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:26:04
Original
1042 people have browsed it

CURL 抓取页面失败
CURL 抓取页面失败

但是我抓取网址 www.baidu.com,就可以成功。

我想是因为原网站判读了来路,或者说什么什么……(我猜想的,也不知道还有什么其它原因没有)

是不是要你们常说的伪造一个head 头。或者说什么什么的…………


大侠们,可以给点建义或者说小例子什么的。


------解决方案--------------------

探讨

你什么返回信息

这个怎么样得到呢???

引用:

首先要看看对方给了你什么返回信息...
没有已知条件,就没办法判断对方的方法。

------解决方案--------------------
不用完全一致..
那你不用测试baidu了,测试你要访问的那个url呢?
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template