curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: curl -Z always exits 0

From: Daniel Stenberg via curl-users <curl-users_at_cool.haxx.se>
Date: Tue, 13 Apr 2021 07:49:47 +0200 (CEST)

On Mon, 12 Apr 2021, Jordan Geoghegan via curl-users wrote:

> $ curl -Z --fail -s https://httpbin.org/status/404
> $ echo $?                                         
> 0
>
> curl 7.72.0 (x86_64-unknown-openbsd6.8)

Thanks for your report!

I can reproduce with my 7.74.0 version. But when using my 7.76.0 I get:

$ curl -Z --fail -s https://httpbin.org/status/404
$ echo $?
22

I looked at the diff between these two versions and I *believe* this was fixed
mostly by accident with the introduction of --fail-with-body.


-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://www.wolfssl.com/contact/


-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2021-04-13