Role
Curl is a powerful web tool that uses URL syntax that you can use to upload and download files.
Curl http://www.cnblogs.com
The appeal command can print the page content to the screen.
Common parameters
-O: Save the file in a file of the specified name
-O: Save the file name of the total address default to local
#将lizi. zip download to local and save Q 1. Zip 1. Zip http://www.cnblogs.com/attachs/lizi.zip-O http:// Www.cnblogs.com/attach/lizhi.zip
Of course you can also get multiple files simultaneously
Curl-o http://http://www.cnblogs.com/attach/2.zip
-L: Force redirection. In general, when a requested page is moved to another site, a redirect request is sent and the new address is re-requested, and curl does not send a redirect request by default. For example, when accessing google.com, it is automatically redirected to google.com.hk (but neither of these goods can be reached now).
Curl-l www.google.com
-C can use the breakpoint continuation function for large files, such as:
-O www.cnblogs.com/attach/1. Zip ########## percent#当文件进度60% When the process ends, through-C-o www.cnblogs.com/attach/1. Zip
Linux Command Learning-curl