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.

--fail-with-body ?

From: Daniel Stenberg via curl-users <>
Date: Thu, 14 Jan 2021 10:23:56 +0100 (CET)


One of the more frequently requested command line options that I can think of
that I've seen over the last few years, is a way to do --fail (-f) (that
returns an error on HTTP response codes >= 400) and still get the content

I've written up a first PR for --fail-with-body that offers this!

... could be subject for inclusion in curl 7.76.0...

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2021-01-14