Как отправить запрос PUT с помощью библиотеки curlpp? Я узнал, как отправить запрос http POST (пример ниже) или GET, но ничего для запроса PUT.
curlpp::Cleanup cleaner;
curlpp::Easy request;
request.setOpt(new curlpp::options::Url(url));
curlpp::types::WriteFunctionFunctor functor(WriteMemoryCallback);
curlpp::options::WriteFunction *test = new curlpp::options::WriteFunction(functor);
request.setOpt(test);
std::list<std::string> header;
header.push_back("Content-Type: application/json");
request.setOpt(new curlpp::options::HttpHeader(header));
request.setOpt(new curlpp::options::PostFields(message));
request.perform();