cURL / Mailing Lists / curl-library / Single Mail


Making a directory

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


  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?

Received on 2001-12-17