summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Kaufmann <mail@michael-kaufmann.ch>2016-09-22 22:15:13 +0200
committerMichael Kaufmann <mail@michael-kaufmann.ch>2016-09-22 22:22:31 +0200
commite9e536619333b0ebd1b096be5c27a39c78e812c5 (patch)
tree44c39aad0c5acc5f0d330653ac214c274afdef38 /include
parentd1f1c857ad559eafef9373621d30174c046261ef (diff)
downloadcurl-e9e536619333b0ebd1b096be5c27a39c78e812c5.tar.gz
New libcurl option to keep sending on error
Add the new option CURLOPT_KEEP_SENDING_ON_ERROR to control whether sending the request body shall be completed when the server responds early with an error status code. This is suitable for manual NTLM authentication. Reviewed-by: Jay Satiro Closes https://github.com/curl/curl/pull/904
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index 0ac238c28..9c09cb966 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -1700,6 +1700,10 @@ typedef enum {
/* Set TCP Fast Open */
CINIT(TCP_FASTOPEN, LONG, 244),
+ /* Continue to send data if the server responds early with an
+ * HTTP status code >= 300 */
+ CINIT(KEEP_SENDING_ON_ERROR, LONG, 245),
+
CURLOPT_LASTENTRY /* the last unused */
} CURLoption;