Does curl really not set the byte limit for the collected content? For example, if I only want the keyword in the header part of the webpage, it is a waste of time to collect all the key words.
Source: Internet
Author: User
Does curl really not set the byte limit for the collected content? For example, if I only want the keyword in the header part of the web page, it is a waste of resources, such as the question !, In the manual, does & nbsp; CURLOPT_NOBODYTRUEtoexcludethebodyfromtheoutputgoogle say that curl does not really set the byte limit for the collected content? For example, if I only want the keyword in the header part of the webpage, it is too wasteful to collect all the key words.
As the question!
------ Solution --------------------
Manual description
CURLOPT_NOBODY TRUE to exclude the body from the output
Google says to exclude the body from the output
I didn't say I couldn't get all the content.
While
Get_headers returns all header information
Get_meta_tags extracts all meta tag content attributes from a file.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service