cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Deleting remote file problem

From: Nilesh Simaria <nilesh_at_deeproot.co.in>
Date: Tue, 3 Dec 2002 19:16:17 +0000 (GMT)

On Tue, 3 Dec 2002, RBramante_at_on.com wrote:

>
> I think you want: curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELE");
>
> (according to rfc959)

Still dosent work
Nilesh

> Hi,
>
> I try to delete a remote file using libcurl. But insted of deleting a
> file, it just displays the contents of a file.
>
> curl_easy_setopt(curl, CURLOPT_URL, "ftp://192.168.1.5/a.txt");
> curl_easy_setopt(curl, CURLOPT_USERPWD, "usr:pwd");
> curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE");
>
> Whats wrong?
>
> Nilesh

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
Received on 2002-12-03