curl / Mailing Lists / curl-users / Single Mail
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: Libcurl: Is there a problem combining CURLOPT_POSTFIELDS with CURLOPT_MIMEPOST?

From: Daniel Stenberg via curl-users <curl-users_at_cool.haxx.se>
Date: Wed, 6 Jan 2021 00:22:46 +0100 (CET)

On Tue, 5 Jan 2021, kent williams via curl-users wrote:

(this is a libcurl question, more suitable for the curl-library list really)

> What seems to be happening is that if you use CURLOPT_MIMEPOST, the
> CURLOPT_POSTFIELDS are forgotten.  You can do the former, or the latter but
> not both.

That is exactly correct: both tell libcurl what to send in the request body.
You cannot mix them, you go with one or the other.

-- 
  / 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-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2021-01-06