Home > Backend Development > PHP Tutorial > php使用CURL如何判断接收的网页是否完整 网速不好的时候 只接收了部分内容

php使用CURL如何判断接收的网页是否完整 网速不好的时候 只接收了部分内容

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:22:56
Original
860 people have browsed it

php使用CURL怎么判断接收的网页是否完整 网速不好的时候 只接收了部分内容
比如用CURL下载一个网页 如果网速不给力 函数返回的时候只下载了网页的部分内容

有什么办法能判断是否已获取了整个网页的内容?

------解决方案--------------------
如果网页不规范,开始或者结束的时候有其他的标签,不就不行了。
可不可以设置一定要获得全部的网页才能返回呢。具体我也不会呢。
学习呀

Related labels:
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
Latest Issues
curl simulated login
From 1970-01-01 08:00:00
0
0
0
Convert cURL command line to PHP cURL code
From 1970-01-01 08:00:00
0
0
0
Convert command line cURL to PHP cURL
From 1970-01-01 08:00:00
0
0
0
How to set boolean value true in php curl
From 1970-01-01 08:00:00
0
0
0
Please tell me, php curl request page shows blank
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template