Linux – How to get cURL to not show the progress bar


I'm trying to use cURL in a script and get it to not show the progress bar.

I've tried the -s, -silent, -S, and -quiet options, but none of them work.

Here's a typical command I've tried:

curl -s > temp.html

I only get the progress bar when pushing it to a file, so curl -s doesn't have a progress bar, but curl -s > temp.html does.

Best Solution

curl -s > temp.html

works for curl version 7.19.5 on Ubuntu 9.10 (no progress bar). But if for some reason that does not work on your platform, you could always redirect stderr to /dev/null:

curl 2>/dev/null > temp.html