Menu

#1057 --show-error must come after --silent

closed-fixed
5
2013-06-21
2011-10-16
No

Just tripped over a to me unexpected behavior in the curl client. When combining the --silent and the --show-error options they apparently have to be used in just that order for the errors to actually be show.

andreas@pingu:~$ curl --show-error --silent http://complete.bogus/
andreas@pingu:~$ curl --silent --show-error http://complete.bogus/
curl: (6) Couldn't resolve host 'complete.bogus'
andreas@pingu:~$

In case this actually is a desirable behavior it might be nice to have it mentioned in the man page.

The curl version in question is taken fresh of the master branch.

andreas@pingu:~$ curl --version
curl 7.23.0-DEV (x86_64-unknown-linux-gnu) libcurl/7.23.0-DEV OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz
andreas@pingu:~$

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2011-10-16

    I'd say this is _not_ a desirable behavior. I'll work on a fix..

     
  • Daniel Stenberg

    Daniel Stenberg - 2011-10-16
    • assigned_to: nobody --> bagder
    • milestone: --> wrong_behaviour
    • labels: --> client module
     
  • Daniel Stenberg

    Daniel Stenberg - 2011-10-16

    Thanks for your report. This bug has been fixed in commit b229c8ca8b34d which has been pushed to the git repo.

    Case closed!

     
  • Daniel Stenberg

    Daniel Stenberg - 2011-10-16
    • status: open --> closed-fixed