curl-users
Curl -s misfeature
Date: Tue, 24 Jan 2012 07:29:50 -0800 (PST)
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.
I believe this applies to most/all versions of curl, but for reference, one of them is:
cygwin $ curl -V
curl 7.20.1 (i686-pc-cygwin) libcurl/7.20.1 OpenSSL/0.9.8r zlib/1.2.5 libidn/1.18 libssh2/1.2.5
Protocols: dict file ftp ftps http https imap imaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM SSL libz
Thanks!
-- John Wiersba
-------------------------------------------------------------------
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