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.
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 -- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://www.wolfssl.com/contact/ ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html