jpbarrette/curlpp

how to construct a put request?

ylhStore opened this issue · 2 comments

I want to construct a put request, where the body is a string in JSON format. Currently, only the demo of the post request is visible in the document.

Just call :

request.setOpt<curlpp::options::CustomRequest>("PUT");
request.setOpt<curlpp::options::PostFields>(body);

See full usage here

Thx