cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Deleting remote file problem

From: <RBramante_at_on.com>
Date: Tue, 3 Dec 2002 08:01:53 -0500

I think you want: curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELE");

(according to rfc959)

                                                                                                                                   
                      Nilesh Simaria
                      <nilesh_at_deeproot.co.in> To: curl-library_at_lists.sourceforge.net
                      Sent by: cc:
                      curl-library-admin_at_lists.sour Subject: Deleting remote file problem
                      ceforge.net
                                                                                                                                   
                                                                                                                                   
                      12/03/2002 01:05 PM
                      Please respond to
                      curl-library
                                                                                                                                   
                                                                                                                                   

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

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