curl-library
How to "PUT" http body to HTTP PUT in libcurl
From: cnm marketing <cnn.marketing_at_gmail.com>
Date: Mon, 25 Jan 2016 12:41:27 -0500
Date: Mon, 25 Jan 2016 12:41:27 -0500
Hi,
I have the following http put, how do I use curl_easy_setopt( ) to set it.
Notice that the body portion is just a Json text string.
//url
HTTP PUT https://xxxxxx/object?name=xyz
// body
{
"bodayField":"abcd"
}
CURLOPT_READDATA and CURLOPT_INFILESIZE_LARGE is for reading a file.
Thanks,
...cnm
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2016-01-25