cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to do http "DELETE" in libcurl

From: cnm marketing <cnn.marketing_at_gmail.com>
Date: Tue, 26 Jan 2016 15:36:27 -0500

Hi,

Does the following make sense to you, I found this some place, but want to
make sure this is valid:

curl_easy_setopt(handle, CURLOPT_CUSTOMREQUEST, "DELETE");
NOTE - send body with HTTP DELETE
    I suggest you simply set the body with CURLOPT_POSTFIELDS and set
    CURLOPT_CUSTOMREQUEST to "DELETE". Done.

Thanks,
cnm

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2016-01-26