dav/methods.c

changeset 15
182af08b4813
parent 13
8a0cc4d90de7
child 16
5dbef9e07376
equal deleted inserted replaced
14:d1a43035d3a2 15:182af08b4813
458 ucx_buffer_free(buf); 458 ucx_buffer_free(buf);
459 } 459 }
460 return res; 460 return res;
461 } 461 }
462 462
463 CURLcode do_delete_request(CURL *handle, UcxBuffer *response) {
464 curl_easy_setopt(handle, CURLOPT_CUSTOMREQUEST, "DELETE");
465 curl_easy_setopt(handle, CURLOPT_PUT, 0L);
466 curl_easy_setopt(handle, CURLOPT_UPLOAD, 0L);
467 curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0);
468
469 curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, ucx_buffer_write);
470 curl_easy_setopt(handle, CURLOPT_WRITEDATA, response);
471
472 CURLcode res = curl_easy_perform(handle);
473 return res;
474 }

mercurial