CURLOPT_EXPECT_100_TIMEOUT_MS − timeout for Expect: 100-continue response
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 an HTTP request containing an Expect: 100-continue header. If this times out before a response is received, the request body is sent anyway.
CURL *curl =
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
/* wait 3
seconds for 100-continue */
curl_easy_setopt(curl, CURLOPT_EXPECT_100_TIMEOUT_MS, 3000L);
Added in 7.36.0
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.