Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: Can the CURLOPT_WRITEFUNCTION ever be called when CURLOPT_UPLOAD is set to 1?
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Sun, 17 Jan 2021 23:24:35 +0100 (CET)
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.
Date: Sun, 17 Jan 2021 23:24:35 +0100 (CET)
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.htmlReceived on 2021-01-17