> 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
