Linux curl command details

Source: Internet
Author: User

Linux curl command details

Command: curl
In 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 upload and download. It is a comprehensive transmission tool. However, traditionally, URLs are called download tools.

Syntax: # curl [option] [url]

Common parameters:
-A/-- user-agent <string>: sets the user proxy to be sent to the server.
-B/-- cookie <name = string/file> cookie string or file read location
-C/-- cookie-jar <file>: after the operation is completed, the cookie is written to this file.
-C/-- continue-at <offset> resumable Transfer
-D/-- dump-header <file>: Write the header information to this file.
-E/-- referer source URL
-F/-- the http error is not displayed when the fail connection fails.
-O/-- output: Write the output to the file.
-O/-- remote-name: Write the output to this file, and keep the file name of the remote file.
-R/-- range <range> to retrieve the byte range from HTTP/1.1 or FTP Server
-S/-- silent mute mode. No output
-T/-- upload-file <file> upload a file
-U/-- user <user [: password]> set the user and password of the server
-W/-- write-out [format] After what output is complete
-X/-- proxy -#/-- Progress-bar progress bar displays the current transfer status


Example:
1. Basic usage
# Curl l

2.2: You can use the built-in option:-o (lower case) of curl to save the webpage
$ Curl-o bkjia.html

Linux curl

Sharing of Curl usage and common functions in Unix

Curl command

This article permanently updates the link address:

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.