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: Wed, 24 Apr 2024 14:03:31 +0200 (CEST)

On Wed, 24 Apr 2024, Vincent MAILHOL wrote:

> When replacing --fail by --fail-with-body in the script, the results remain
> the same. Thus, me saying in my previous message that --fail and
> --fail-with-body looks indeed similar and (3) is incorrect.
>
> Does that make sense, or am I missing something else?

The exception mentioned for 401/407 is there because those response codes are
used for authentication, so you need to mix in use of that to find the edge
cases.

Like: access an auth-protected HTTP resource and provide a user name but with
the wrong password, and use --fail. Possibly try digest or NTLM or added
complexity.

-- 
  / 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-24