--- a/dav/methods.c Wed Aug 14 18:01:37 2013 +0200 +++ b/dav/methods.c Thu Aug 15 11:23:25 2013 +0200 @@ -460,3 +460,15 @@ return res; } +CURLcode do_delete_request(CURL *handle, UcxBuffer *response) { + curl_easy_setopt(handle, CURLOPT_CUSTOMREQUEST, "DELETE"); + curl_easy_setopt(handle, CURLOPT_PUT, 0L); + curl_easy_setopt(handle, CURLOPT_UPLOAD, 0L); + curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0); + + curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, ucx_buffer_write); + curl_easy_setopt(handle, CURLOPT_WRITEDATA, response); + + CURLcode res = curl_easy_perform(handle); + return res; +}