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: [man-pages] Discrepancy between --fail-with-body and --fail

From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Tue, 23 Apr 2024 22:49:49 +0200 (CEST)

On Wed, 24 Apr 2024, Vincent MAILHOL via curl-users wrote:

> 1. --fail-with-body returns an error if the http response code is
> 400 or greater
>
> 2. --fail-with-body and --fail would fail under the same circumstances
>
> 3. for --fail, error code between 401 and 407 would "slip through"
>
> Those three conditions result in a logical contradiction. At least one of
> those should be incorrect. To the extent of my knowledge, the third one
> seems incorrect, but not fully sure of that.

I think (2) is incorrect. The 401 and 407 exceptions mentioned for --fail does
not seem to exist for --fail-with-body.

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-04-23