日期:2014-05-17  浏览次数:20439 次

curl真的没有对采集内容进行字节限制的设置么?例如我只想要网页的header部分的keyword,全部都采集过来的话太浪费了
如题!

------解决方案--------------------
手册上说 
CURLOPT_NOBODY TRUE to exclude the body from the output
google说 to exclude the body from the output 从输出中排除身体
并没有说不取得全部内容


get_headers 返回全部头信息
get_meta_tags 从一个文件中提取所有的 meta 标签 content 属性

自己掂量着办