How to Download a File Using cURL With Examplesby@trubavuong
3,341 reads

How to Download a File Using cURL With Examples

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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

@trubavuong

Vuong Tru


Receive Stories from @trubavuong

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa