On Mon, 21 Nov 2022, Darius Panahy via curl-library wrote:

I can do this with:

curl_easy_setopt(curl, CURLOPT_URL,ftp://<host>/);
curl_easy_setopt(curl, CURLOPT_USERPWD, "xxx:yyy");
cmdlist = curl_slist_append(cmdlist, "DELE /c/temp/ftp/a.txt");
curl_easy_setopt(curl, CURLOPT_QUOTE, cmdlist);
res = curl_easy_perform(curl);

however after running the DELE command, curl also performs a LIST which I do not want since this could be the LIST of a large folder.

You can set CURLOPT_NOBODY which I believe will prevent it from downlading the "body" of the transfer.

--

 / daniel.haxx.se
 | Commercial curl support up to 24x7 is available!
 | Private help, bug fixes, support, ports, new features
 | https://curl.se/support.html
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to