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

WBOY
Release: 2016-06-13 13:22:56
Original
806 people have browsed it

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

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

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

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!