CURL.1 manual page
Name
Curl-transfer a URL
Summary
curl[options] [URL ...]
Describe
CURL is a tool that transmits data to or from the server, which supports HTTP, HTTPS,
Protocols such as FTP, FTPS, SCP, SFTP, TFTP, DICT, TELNET, LDAP, or
Linux Curl is a tool for uploading or downloading files under the command line via URL syntax, which supports a variety of protocols such as http,https,ftp,ftps,telnet, which are often used to crawl Web pages and monitor the status of Web Servers.
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
This article is http://www.51osos.com/a/Linux_CentOS_RedHat/Linuxjichu/2010/1025/curl.html and http://hi.baidu.com/yschen0925/ Summary of the blog/item/d62851072f10eaca7b894790.html.
Today 51 open Source to give you a detailed explanation curl this
index.php/*Using the PHP Curl Library, you can easily and effectively grab pages. Just run a script, then analyze the crawled pages, and then you can get the data you want in a program.Whether you want to take part of the data from a link, or take
1. Open the GZIP requestCurl-i http://www.sina.com.cn/-H accept-encoding:gzip,defalte2, monitoring the response time of the Web pageCurl-o/dev/null-s-W "time_connect:%{time_connect}\ntime_starttransfer:%{time_starttransfer}\ntime_total:%{time_ total}
Original address: http://blog.sina.com.cn/s/blog_4b9eab320100slyw.html
Can be viewed as a command line browser
1. Open the GZIP requestCurl-i http://www.sina.com.cn/-H accept-encoding:gzip,defalte2, monitoring the response time of the Web pageCurl-o/
Php-curl package [Avoid uploading files ambiguity bug]
Since PHP's curl is in curl_setopt ($curl, curlopt_postfields, xxx), when XXX is an array, if the first character of the value is @, then it is considered a file upload, when you need to upload
When Curl submits a POST request to a website address, it will return a file. If the output will output the content of this file, how can we get the returned file name or how can we save this file? {code ...} $ rinfocurl_getinfo ($ curl); if
Demo Code
Operation effect (Figure 1)
Operation effect (Figure 2)
Main Package function
Multi_process ();According to the parameters, create the number of pointers to the child process.Bright spot Function 1: The
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.