jpbarrette/curlpp

Bug in curl settings for transferring content with nlohmann-json package

Yanyanghappy opened this issue · 0 comments

For nlohmann-json package

Correct:curl_easy_setopt(curl, CURLOPT_POSTFIELDS, jsonString.c_str());

Error:curl_easy_setopt(curl, CURLOPT_POSTFIELDS, jsonString.dump(4).c_str());