Re: How to *securely* delete a file
Date: Thu, 23 Apr 2009 23:43:32 +0200 (CEST)
On Thu, 23 Apr 2009, Angus March wrote:
> headerlist = curl_slist_append(headerlist, "DELE the_file");
> curl_easy_setopt(curl, CURLOPT_POSTQUOTE, headerlist);
> but I don't know what would happen in the event of a download failure.
> Would the delete go through anyway?
No. The CURLOPT_POSTQUOTE actions will only be performed if no error has
occurred. I'll clarify this in the man page.
-- / daniel.haxx.seReceived on 2009-04-23