How do I download a file using Curl?

To download a file with Curl, use the --output or -o command-line option. This option allows you to save the downloaded file to a local drive under the specified name. If you want the uploaded file to be saved under the same name as in the URL, use the --remote-name or -O command line option. If you don't use any of these options, Curl will print the downloaded file to the screen. In this Curl Download File example, we download a file from the ReqBin echo URL. For security reasons, saving files on the ReqBin server is disabled.
Loading...