58 Curl
58 Curl
Linux curl (Client URL) command is used to download or upload data to a server via supported
protocols such as HTTP, FTP, IMAP, SFTP, TFTP, IMAP, POP3, SCP, etc. It is a remote utility, so it
works without user interaction. The curl utility allows us to transfer data via the command line.
curl (Client URL) comes with a wide range of options and parameters that facilitate its use in
different use cases.
Commands Description
# apt install curl Install curl package
# curl --version Verify the installation of curl
# man curl checking the manual
# curl --help Getting help about curl
# curl <URL> To fetch the content of any specific URL
# curl -o <directory>/<filename> <URL> To save the data in a specific file
# curl -C <URL> Resume the download of the specified URL
# curl -O <URL1> <URL2> To download the multiple files
# curl -I <URL> To query the HTTP headers from website
# curl -O <URL>/<file> Downloading a File
# curl -u username:password <URL> Authentication
# curl -x proxyserver:port <URL> Using a proxy
# curl --limit-rate 100k <URL> -O Limiting the Download Speed
Commands
# curl example.com
# curl -O https://wordpress.org/lastest.zip
# curl -o file.txt https://www.example.com
# curl --limit-rate 100k https://wordpress.org/lastest.zip -O
# curl -x 192.168.114.10:80 example.com
# curl -I example.com