cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Sending a body with a DELETE request

From: Nicolas Heynen <nicolas.heynen_at_ubisoft.com>
Date: Thu, 1 Nov 2012 16:28:34 -0400

Hello Daniel,
I managed to make it work thanks to your hints.

Thanks for your help.

Best regards,
Nicolas.

-----Message d'origine-----
De : curl-library [mailto:curl-library-bounces_at_cool.haxx.se] De la part de Daniel Stenberg
Envoyé : jeudi 1 novembre 2012 13:07
À : libcurl development
Objet : Re: Sending a body with a DELETE request

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
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-11-01