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

14 Replies, 776 Views

Curl save to file is a lifesaver, but I’ve had issues with SSL certs sometimes. If you run into that, just add `-k` to ignore SSL verification. Not ideal for production, but works in a pinch.

Also, if you’re downloading multiple files, you can use a loop in bash:
```
for url in $(cat urls.txt); do
curl -O $url
done
```

Messages In This Thread



Users browsing this thread: 1 Guest(s)