How do I get cURL to not show the progress bar?

bash, curl, linux, scripting, unix

Solution

curl -s http://google.com > 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  http://google.com 2>/dev/null > temp.html

Problem

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 http://google.com > temp.html ``` I only get the progress bar when pushing it to a file, so `curl -s http://google.com` doesn't have a progress bar, but `curl -s http://google.com > temp.html` does.

Original source

Related problems