On Sun, 24 Jun 2012, Steve Holme wrote:
Thanks for your advice.
I fixed my code and it works well.
curl_easy_setopt(handle, CURLOPT_CUSTOMREQUEST, "DELE");
curl_easy_setopt(handle, CURLOPT_NOBODY, 1);
You're welcome... I just double checked the documentation for CUSTOMREQUEST
and NOBODY and it's not obvious that the option should be used for the DELE
command so I will update the documentation accordingly.
Thanks!
I can see how a casual user may not think about the necessity of using such an
option. I still think it is better to rely on that rather than to add
knowledge to the code about a specific set of commands in the way Nagai's
patch did.
--
/ daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html