cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Sending a body with a DELETE request

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 1 Nov 2012 18:06:57 +0100 (CET)

On Thu, 1 Nov 2012, Nicolas Heynen wrote:

> DELETE requests sent with libcurl does not seem to embed a body.

Then you're not doing it right.

I suggest you simply set the body with CURLOPT_POSTFIELDS and set
CURLOPT_CUSTOMREQUEST to "DELETE". Done.

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