How do I use curl save to file to download and store content directly?

14 Replies, 792 Views

Curl save to file is so underrated! I use it daily for pulling down JSON APIs and saving them locally. One tip: if you’re dealing with compressed files, use `--compressed` to automatically decompress them.

Also, if you’re on macOS, you can use `pbpaste` with curl to grab URLs from your clipboard. Like:
`curl -o file.txt $(pbpaste)`

Messages In This Thread



Users browsing this thread: 1 Guest(s)