cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl -s misfeature

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Tue, 24 Jan 2012 11:18:13 -0500

On Tue, Jan 24, 2012 at 10:29 AM, John Wiersba <jrw32982_at_yahoo.com> wrote:

> First of all, thanks for making curl available! It's a very handy tool.
>
> Now, the misfeature:
>
> curl URL >output
>
> will display a progress bar. That's OK for interactive use, but not ok
> for scripts. Option -s will turn off the progress bar, but it also turns
> off displaying error messages. Similarly, redirecting stderr to /dev/null
> seems to be a synonym for -s. There should be some way of turning off the
> progress bar without turning off error messages. I can't see it in the
> manpage.
>
> The option you're looking for is -S, as in:

        curl -s -S ... <url>

It turns error reporting back on when used along with -s.

Ralph Mitchell

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-01-24