mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:43:34 +03:00
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
This commit is contained in:
parent
d1f1c857ad
commit
e9e5366193
14 changed files with 364 additions and 7 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue