1CURLOPT_EXPECT_100_TIMEOUT_McSu(r3l)_easy_setopt optCiUoRnLsOPT_EXPECT_100_TIMEOUT_MS(3)
2
3
4

NAME

6       CURLOPT_EXPECT_100_TIMEOUT_MS   -   timeout  for  Expect:  100-continue
7       response
8

SYNOPSIS

10       #include <curl/curl.h>
11
12       CURLcode curl_easy_setopt(CURL *handle, CURLOPT_EXPECT_100_TIMEOUT_MS,
13                                 long milliseconds);
14

DESCRIPTION

16       Pass a long to tell libcurl the number of milliseconds to  wait  for  a
17       server  response  with the HTTP status 100 (Continue), 417 (Expectation
18       Failed) or similar after sending an HTTP request containing an  Expect:
19       100-continue  header.  If this times out before a response is received,
20       the request body is sent anyway.
21

DEFAULT

23       1000 milliseconds
24

PROTOCOLS

26       HTTP
27

EXAMPLE

29       CURL *curl = curl_easy_init();
30       if(curl) {
31         curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
32
33         /* wait 3 seconds for 100-continue */
34         curl_easy_setopt(curl, CURLOPT_EXPECT_100_TIMEOUT_MS, 3000L);
35
36         curl_easy_perform(curl);
37       }
38

AVAILABILITY

40       Added in 7.36.0
41

RETURN VALUE

43       Returns CURLE_OK if the option is supported,  and  CURLE_UNKNOWN_OPTION
44       if not.
45

SEE ALSO

47       CURLOPT_POST(3), CURLOPT_HTTPPOST(3),
48
49
50
51libcurl 7.71.1                  March 23, 2020CURLOPT_EXPECT_100_TIMEOUT_MS(3)
Impressum