Linux shell script programming-detailed explanation of curl commands

Source: Internet
Author: User
LinuxShell script programming-curl Command detailed usage instructions curl Command is a powerful network tool that can download files through http, ftp, and other methods, but also upload files. In fact, curl is far more than the functions mentioned above. you can get it through the mancurl reading manual page... linux Shell script programming-detailed description of the curl command purpose curl Command is a powerful network tool that can download files through http, ftp, and other methods, but also upload files. In fact, curl is far more than the functions mentioned above. you can read more information on the man curl manual page. Similar tools include wget. The curl Command is implemented using the libcurl Library. the libcurl library is often used in C programs to process HTTP requests. curlpp is a C ++ encapsulation of libcurl, these items can be used for web page capturing and network monitoring development. The curl Command can help solve problems encountered during the development process. There are many common curl command parameters. here we only list the parameters I have used, especially those used in shell scripts. -A: specify the information about your browser declared during this access.-B/-- cookie Cookie string or file reading location. use option to append the last cookie information to the http request. -C/-- cookie-jar After the operation, write the cookie to the file-C/-- continue- Resumable transfer-d/-- data Send data through http post-D/-- dump-header Write header information to this file-F/-- form Simulate the lower-case v parameter of the-v/-- verbose data submitted in an http form to print more information, including the sent request information, which is particularly useful in script debugging. -M/-- max-time Specify the maximum duration of processing-H/-- header Specify the request header parameter-s/-- slient to reduce the output information, such as the progress -- connect-timeout Specify the maximum connection duration-x/-- proxy Specifies the proxy server address and port. the default port is 1080-T/-- upload-file Specify the Upload file path-o/-- output Specify the name of the output file -- retry Number of retries-e/-- referer Specify the reference address-I/-- head. only the header information is returned, and the HEAD request-u/-- user Set the server user and password-O: The local-r/-- range automatically exists according to the file name on the server. Retrieve bytes from HTTP/1.1 or FTP server-T/-- upload-file Upload files
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.