CURL Command to Download and Save File. To simply download a file using curl use following. Feb 13, 2014. Jul 15, 2020. What is CURL? In fact, curl is more than just a command line utility for macOS, Linux or Windows. This is a set of libraries that implement the basic capabilities of working with URL pages and file transfer.
May 21, 2020.
cURL is an open source command line tool and library for transferring data from remote systems. cURL support wide range of protocols like FILE, FTP, FTPS,HTTP, HTTPS, SCP, SFTP and many more. This article will help you to how to download remote files using cURL command line.
Use following command to download a single file from remote server using HTTP protocol. The following example will download latest.tar.gz from remote server and save in current directory with same name.
Use following command to download a single file from remote server and save at specified location with specified name on local disk. The following example will download latest.tar.gz from remote server and save in /tmp/ directory with name wp.tar.gz.
Use following command to download files from multiple files from multiple remote servers using HTTP protocol. The following example will download latest.tar.gz and latest.zip from remote servers and save in current directory with same names.
If remote files are behind authentication and required username and password to download files. Use following examples to download files.
Download files from ftp server with ftp login credentials
Download files from http server with http login credentials.
If your connection required proxy server to download remote files. Use following examples to download files through proxy server. Use -x following by proxy_server:port .