transfer: make Expect: 100-continue timeout configurable.
Replaced the #define CURL_TIMEOUT_EXPECT_100 in transfer.c with the CURLOPT_EXPECT_100_TIMEOUT_MS option to make the timeout configurable.
This commit is contained in:

committed by
Daniel Stenberg

parent
bcb32e915e
commit
c021a60bcc
@@ -1649,6 +1649,12 @@ Pass a long to tell libcurl how to act on transfer decoding. If set to zero,
|
||||
transfer decoding will be disabled, if set to 1 it is enabled
|
||||
(default). libcurl does chunked transfer decoding by default unless this
|
||||
option is set to zero. (added in 7.16.2)
|
||||
.IP CURLOPT_EXPECT_100_TIMEOUT_MS
|
||||
Pass a long to tell libcurl the number of milliseconds to wait for a server
|
||||
response with the HTTP status 100 (Continue), 417 (Expectation Failed) or
|
||||
similar after sending a HTTP request containing an Expect: 100-continue
|
||||
header. If this times out before a response is received, the request body is
|
||||
sent anyway. By default, libcurl waits 1000 milliseconds. (Added in 7.36.0)
|
||||
.SH SMTP OPTIONS
|
||||
.IP CURLOPT_MAIL_FROM
|
||||
Pass a pointer to a zero terminated string as parameter. This should be used
|
||||
|
@@ -341,6 +341,7 @@ CURLOPT_DNS_USE_GLOBAL_CACHE 7.9.3 7.11.1
|
||||
CURLOPT_EGDSOCKET 7.7
|
||||
CURLOPT_ENCODING 7.10
|
||||
CURLOPT_ERRORBUFFER 7.1
|
||||
CURLOPT_EXPECT_100_TIMEOUT_MS 7.36.0
|
||||
CURLOPT_FAILONERROR 7.1
|
||||
CURLOPT_FILE 7.1 7.9.7
|
||||
CURLOPT_FILETIME 7.5
|
||||
|
Reference in New Issue
Block a user