cURL / Mailing Lists / curl-library / Single Mail

curl-library

Deleting remote file problem

From: Nilesh Simaria <nilesh_at_deeproot.co.in>
Date: Tue, 3 Dec 2002 18:05:53 +0000 (GMT)

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