paint-brush
How to Download a File Using cURL With Examplesby@trubavuong
4,154 reads
4,154 reads

How to Download a File Using cURL With Examples

by Vuong Tru3mJuly 20th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Using cURL to retrieve the output of a file only takes a few more characters. Saving a file with a remote file name can save the output to a local file in the current working directory. Using the output redirection operator in Linux, you can use the output append operator to write the output into a specific file. If the target server responded with the HTTP redirection code (3xx) for the requested file, the local file you downloaded would be empty. If you want to download multiple files with a single command, you have to add the sizeof-r to the cURL.

Company Mentioned

Mention Thumbnail
featured image - How to Download a File Using cURL With Examples
Vuong Tru HackerNoon profile picture
Vuong Tru

Vuong Tru

@trubavuong

Husband / Father / Software Engineer

About @trubavuong
LEARN MORE ABOUT @TRUBAVUONG'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Vuong Tru HackerNoon profile picture
Vuong Tru@trubavuong
Husband / Father / Software Engineer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite