Basic CURL Commands

curl is a command line tool to transfer data to or from a server. It is able to use any of the supported protocols like HTTP, FTP, IMAP, POP3, SCP, SFTP, SMTP, TFTP, TELNET, LDAP or FILE. This tool is very useful for automation, since it is designed to work without user interaction. Furthermore, curl can transfer multiple file at once.

Basic Single URL Usage

% curl

2a. Save the Download File with a preferred file name

Save the Download File on the local machine with the name provided with the parameter.

% curl -o test.o

2b. Save the Download File

% curl -O

2c. Download Multiple Files. Just Multiple -O

% curl -O -O -O

3a. Display a Progress Meter

% curl --progress-bar -o test.o 

3b. Do not display a Progressive Bar

% curl --silent -o test.o

4 Limit Rate of Data Transfer

% curl --limit-rate 1000K -o test.o

5a Uploading a File to the FTP Server

% curl -u username:userpassword -T myfile

5b. Appending the File to the FTP Server

% curl -u username:userpassword -a -T myfile

5c Downloading the File to the File Server

% curl ftp:/ --user username:userpassword -o myCentOS79.iso

6a. Verifying SSL Certificate

% curl --cacert server.crt

6b. Ignoring SSL Certificate

% curl -k

7a Proxy Server

% curl -x proxy_name:proxy_port

7b Proxy Server which requires authentication

% curl --user username:userpassword -x proxy_name:proxy_port 

8 Sending Email

% curl --url "smtps"// --ssl-reqd --mail-from "" --mail-rcpt "" --upload-file maincontent.txt --user "" --insecure


  1. Learn to use CURL command with examples
  2. Curl command in Linux with Examples

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.