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 <>
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
> $ 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
$ echo $?

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.

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features

Received on 2021-04-13