curl-library
Re: Time to disable "Expect: 100-continue" by default?
From: Patrick Monnerat via curl-library <curl-library_at_cool.haxx.se>
Date: Tue, 18 Jul 2017 00:15:28 +0100
Date: Tue, 18 Jul 2017 00:15:28 +0100
On 07/17/2017 11:50 PM, Jeroen Ooms via curl-library wrote:
> What is the proper way to disable the 'Expect' header which will work
> across versions of libcurl? Does this work?
>
> assert(curl_easy_setopt(handle, CURLOPT_EXPECT_100_TIMEOUT_MS, 0L));
>
The best way is to set an "Expect:" header as shown in example programs
https://curl.haxx.se/libcurl/c/post-callback.html,
https://curl.haxx.se/libcurl/c/multi-post.html and
https://curl.haxx.se/libcurl/c/postit2.html.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-07-18