diff options
| author | Michael Kaufmann <mail@michael-kaufmann.ch> | 2016-09-22 22:15:13 +0200 | 
|---|---|---|
| committer | Michael Kaufmann <mail@michael-kaufmann.ch> | 2016-09-22 22:22:31 +0200 | 
| commit | e9e536619333b0ebd1b096be5c27a39c78e812c5 (patch) | |
| tree | 44c39aad0c5acc5f0d330653ac214c274afdef38 /lib/url.c | |
| parent | d1f1c857ad559eafef9373621d30174c046261ef (diff) | |
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 'lib/url.c')
| -rw-r--r-- | lib/url.c | 4 | 
1 files changed, 4 insertions, 0 deletions
| @@ -782,6 +782,10 @@ CURLcode Curl_setopt(struct Curl_easy *data, CURLoption option,       */      data->set.http_fail_on_error = (0 != va_arg(param, long)) ? TRUE : FALSE;      break; +  case CURLOPT_KEEP_SENDING_ON_ERROR: +    data->set.http_keep_sending_on_error = (0 != va_arg(param, long)) ? +                                           TRUE : FALSE; +    break;    case CURLOPT_UPLOAD:    case CURLOPT_PUT:      /* | 
