On Sun, 17 Jan 2021, Andreas Falkenhahn wrote:
1) Does CURLOPT_MIMEPOST imply CURLOPT_UPLOAD?
No. For HTTP, CURLOPT_MIMEPOST means POST while CURLOPT_UPLOAD means PUT.
2) If setting CURLOPT_UPLOAD to 1 should only be done when supplying the data via CURLOPT_READFUNCTION it should be mentioned on the man page of CURLOPT_UPLOAD that setting CURLOPT_UPLOAD to 1 should only be done if one intends to use CURLOPT_READFUNCTION to provide the data and not use other means of providing the data like through CURLOPT_MIMEPOST.
You'll never use CURLOPT_MIMEPOST with CURLOPT_UPLOAD. They're mutually exclusive. One is POST, the other is PUT.
-- / 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