cURL / Mailing Lists / curl-library / Single Mail


how to disable logs for ftp delete using curl library

From: Arun venkatesh <>
Date: Fri, 29 Jul 2011 20:19:34 +0530

im using curl library windows version (curl-7.21.7-devel-mingw32), for
performing various FTP operations from my application programme.

issue on one such operation i would like to discuss about is with FTP delete..
though delete works fine with the below statements, i see a lot of
console logs essentially displaying the list of files in the
folder,when ever curl tries to delete a file in that folder. though
ive disabled the verbose option, im not sure how can i avoid these
extra logs

the code snippet is as follows

                  string url = getUrl();
          string command = "DELE " + filename;
          struct curl_slist *headerlist=NULL;

          curl_easy_setopt(m_curl, CURLOPT_URL, url.c_str());
          headerlist = curl_slist_append(headerlist, command.c_str());
          curl_easy_setopt(m_curl, CURLOPT_QUOTE, headerlist);
          res = curl_easy_perform(m_curl);
          curl_slist_free_all (headerlist);

fore instance the console logs duriing delete are as follows

-rw-r--r-- 1 ftp ftp 3030 Jul 29 20:02 369411257.csv
-rw-r--r-- 1 ftp ftp 3120 Jul 29 20:02 369416255.csv
-rw-r--r-- 1 ftp ftp 3210 Jul 29 20:02 369421255.csv
-rw-r--r-- 1 ftp ftp 3390 Jul 29 20:02 369426255.csv
-rw-r--r-- 1 ftp ftp 3568 Jul 29 20:02 369431255.csv

let me knw if anybody has a clue on how to disable the console logs

List admin:
Received on 2011-07-29