cURL / Mailing Lists / curl-library / Single Mail

curl-library

Making a directory

From: Guido Neitzer <guido.neitzer_at_pharmaline.de>
Date: Mon, 17 Dec 2001 11:33:20 +0100

Hi.

  What is the correct way to only create a directory on an ftp-server
with libcurl?

  Currently I do the following:

[...]
                // setting the login:
                curl_easy_setopt (curl, CURLOPT_USERPWD, [login cString]);

                // setting the host and the url to work on:
                curl_easy_setopt (curl, CURLOPT_URL, [host cString]);
                                
                // set the list of commands:
                curl_easy_setopt (curl, CURLOPT_POSTQUOTE, headerlist);
                
                res = curl_easy_perform (curl);
[...]

  With that libcurl downloads the directory listing of the given url
"host". The commands in the the [] brackets returns a char *

  The directory is created, but how can I avoid downloading a filelist?

cug
Received on 2001-12-17