From: Daniel Stenberg Date: Tue, 5 Jan 2021 08:36:10 +0000 (+0100) Subject: TODO: --fail-with-body perchance? X-Git-Tag: curl-7_75_0~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e269785cf1ce27932ded93186555e51324ceed7f;p=thirdparty%2Fcurl.git TODO: --fail-with-body perchance? --- diff --git a/docs/TODO b/docs/TODO index c91bd93da2..70f1bec1a5 100644 --- a/docs/TODO +++ b/docs/TODO @@ -162,6 +162,7 @@ 18.19 expand ~/ in config files 18.20 host name sections in config files 18.21 retry on the redirected-to URL + 18.22 --fail-with-body 18.23 Set the modification date on an uploaded file 18.24 Use multiple parallel transfers for a single download 18.25 Prevent terminal injection when writing to terminal @@ -1151,6 +1152,14 @@ that doesn't exist on the server, just like --ftp-create-dirs. See https://github.com/curl/curl/issues/5462 +18.22 --fail-with-body + + Lots of users who want --fail still want the response body saved as well - + which --fail doesn't offer. The current solution for users is to use + --write-out with %{response_code} and script the missing logic, but adding a + --fail-with-body option could be an easier way for users without requiring + external conditional checks. + 18.23 Set the modification date on an uploaded file For SFTP and possibly FTP, curl could offer an option to set the