]> granicus.if.org Git - curl/commitdiff
docs: Fix FAILONERROR typos
authorAnthon Pang <apang@softwaredevelopment.ca>
Thu, 4 Dec 2014 19:51:06 +0000 (14:51 -0500)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 4 Dec 2014 20:14:59 +0000 (12:14 -0800)
It returns error for >= 400 HTTP responses.

Bug: https://github.com/bagder/curl/pull/129

CHANGES.0
include/curl/curl.h
lib/url.c
lib/urldata.h

index d2413fa1332f36c48099211c69bc123c9ebea95a..3dc8185cb95ef35d48f4f28e680c88dd7dc339d5 100644 (file)
--- a/CHANGES.0
+++ b/CHANGES.0
@@ -17851,7 +17851,7 @@ Version 2.7
    rewrite the former -l kludge in an external script that'll use urlget to
    fetch multipart files like that.
  - '-f' is introduced, it means Fail without output in case of HTTP server
-   errors (return code >=300).
+   errors (return code >=400).
  - Added support for -r, ranges. Specify which part of a document you
    want, and only that part is returned. Only with HTTP/1.1-servers.
  - Split up the source in 3 parts. Now all pure URL functions are in
index 0d2076bd29f6638a45e347d19f5e0c2bdd0ec9b3..0915a20fa1dced95eb2a9f131cd1e993e1f6e8d3 100644 (file)
@@ -989,7 +989,7 @@ typedef enum {
   CINIT(HEADER, LONG, 42),       /* throw the header out too */
   CINIT(NOPROGRESS, LONG, 43),   /* shut off the progress meter */
   CINIT(NOBODY, LONG, 44),       /* use HEAD to get http document */
-  CINIT(FAILONERROR, LONG, 45),  /* no output on http error codes >= 300 */
+  CINIT(FAILONERROR, LONG, 45),  /* no output on http error codes >= 400 */
   CINIT(UPLOAD, LONG, 46),       /* this is an upload */
   CINIT(POST, LONG, 47),         /* HTTP POST method */
   CINIT(DIRLISTONLY, LONG, 48),  /* bare names when listing directories */
index bb9a3bfbced8e212cee2cc39da749e3c8770295d..e6483ca88d69dbfff66defc8b7e75f66ad2fd5ff 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -769,7 +769,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
     break;
   case CURLOPT_FAILONERROR:
     /*
-     * Don't output the >=300 error code HTML-page, but instead only
+     * Don't output the >=400 error code HTML-page, but instead only
      * return error.
      */
     data->set.http_fail_on_error = (0 != va_arg(param, long))?TRUE:FALSE;
index d61e8cefc8e3daa33c5ebdeb62244c3f2fcaf7d5..c359c06d0e7c90f550197cba855143a2f8bd60d9 100644 (file)
@@ -1572,7 +1572,7 @@ struct UserDefined {
   bool ftp_list_only;    /* switch FTP command for listing directories */
   bool ftp_use_port;     /* use the FTP PORT command */
   bool hide_progress;    /* don't use the progress meter */
-  bool http_fail_on_error;  /* fail on HTTP error codes >= 300 */
+  bool http_fail_on_error;  /* fail on HTTP error codes >= 400 */
   bool http_follow_location; /* follow HTTP redirects */
   bool http_transfer_encoding; /* request compressed HTTP transfer-encoding */
   bool http_disable_hostname_check_before_authentication;