cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP Delete with libcurl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 7 May 2002 08:44:22 +0200 (MET DST)

On Mon, 6 May 2002, John Brayton wrote:

> curl_easy_setopt(curl, CURLOPT_QUOTE, "DELE filename");

Badness detected.

Let me quote http://curl.haxx.se/libcurl/c/curl_easy_setopt.html

<quote>
CURLOPT_QUOTE
         Pass a pointer to a linked list of FTP commands to pass
         to the server prior to your ftp request. The linked list
         should be a fully valid list of 'struct curl_slist'
         structs properly filled in. Use curl_slist_append(3) to
         append strings (commands) to the list, and clear the
         entire list afterwards with curl_slist_free_all(3). Dis-
         able this operation again by setting a NULL to this
         option.
</quote>

An example showing how this can be made, can be found here (it renames a file
after an FTP upload):

        http://curl.haxx.se/lxr/source/docs/examples/ftpupload.c

Good luck!

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth_at_sourceforge.net
Received on 2002-05-07