On 14.01.2021 at 16:36, Daniel Stenberg wrote:

> On Mon, 11 Jan 2021, Christoph M. Becker via curl-library wrote:
>
>> I wanted to send a post request with an empty body, and found that
>>
>>    curl_easy_setopt(handle, CURLOPT_MIMEPOST, NULL);
>>
>> allows me to do so.
>
> There are other ways to do it as well, like setting CURLOPT_POSTFIELDS
> to a zero length string.

Ah, of course.  Thank you!

>> But it does not work to reset a formerly set mimepost, e.g.
>
> This is a bug. I filed it on GitHub:
>   https://github.com/curl/curl/issues/6455
>
> and created a pull request with a fix:
>   https://github.com/curl/curl/pull/6456

Wow, that was fast!  I assume the fix will ship with cURL 7.76.0.

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to