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: C ++ program using libcurl sends message and receives reply, but the message is sent twice.

From: Zakrzewski, Jakub via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 12 Oct 2020 11:04:58 +0000

> This program is capable of sending the message to the server and of collecting the response from it, but as it is written, it sends the message twice to the server, despite the fact that in the C ++ code it is only being sent once (it must be something that the libcurl library does independently of the C ++ program).



You do perform 2 requests in your code.
Sending request and reading response are not two separate operations. Set all the options before the first curl_easy_perform() and skip the second one.


-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-10-12