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 } |