Linux Command curl command details, linux Command curl detailsCommand: curlIn linux, curl is a File Transfer tool that uses URL rules to work under the command line. It can be said that it is a powerful http command line tool. It supports file
Currently, php provides the most comprehensive CURL description in Chinese. In PHP, the CURL Function Library (ClientURLLibraryFunction) curl_close-closes a curl session curl_copy_handle-copies all content of a curl connection resource and the CURL
Curl Libraries in PHP (Client URL library function)
curl_close-closing a Curl session
curl_copy_handle-Copy all the contents and parameters of a Curl connection resource
curl_errno-returns a numeric number that contains the current session error
Currently, the most comprehensive CURL Chinese explanation shows that PHP learning should be well mastered. There are many parameters. Most of them are useful. If you have mastered it and regular expressions, you must be a collection expert.
First,
Curl function library in PHP (Client URL library function)
Curl_close-closes a Curl session
curl_copy_handle-copies all the contents and parameters of a Curl connection resource
curl_errno-returns a numeric number containing the current session
First, write a simple crawl page function
Copy Code code as follows:
function Getsources ($URL, $User _agent= ', $Referer _url= ')//crawl a specified page
{
$URL page address that needs to be crawled
$User _agent need to return
Currently, the most comprehensive CURL Chinese explanation shows that PHP learning should be well mastered. There are many parameters. Most of them are useful. If you have mastered it and regular expressions, you must be a collection expert. First,
Curl usage in php CURL Library Function in PHP)
Curl_close? Close a curl sessionCurl_copy_handle? Copy all content and parameters of a curl connection resourceCurl_errno? Returns a number that contains the current session error message.Curl_error?
Statement: I have translated several untranslated parts of the original post.
---------------------------------------------------- The post starts -------------------------------------------------------
Curl library function in PHP)
Curl_close-
Linux curl is a file transfer tool that uses URL rules to work at the command line. It supports the uploading and downloading of files, so it is a comprehensive transmission tool, but traditionally, the URL is used as the download tool.
One, Curl
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.