cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Using http DELETE

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 20 Jun 2005 23:08:28 +0200 (CEST)

On Mon, 20 Jun 2005, Óscar Morales Vivó wrote:

> Is there any sample code around for using libcurl to send a DELETE http
> command using the curl_easy interfaces? It seems one needs to set some
> custom properties for that but I'm pretty stumped about how to do it.
>
> Any help will be appreciated. Thanks in advance.

I don't think an example is required:

    http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTCUSTOMREQUEST

Like this:

   curl_easy_setopt(handle, CURLOPT_CUSTOMREQUEST, "DELETE");

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-06-20