https://curl.haxx.se/libcurl/c/curl_easy_setopt.html
https://curl.haxx.se/libcurl/c/example.html
https://curl.haxx.se/libcurl/c/
https://curl.haxx.se/libcurl/c/ftp-wildcard.html
https://curl.haxx.se/libcurl/c/ftpgetinfo.html
https://curl.haxx.se/libcurl/c/CURLOPT_WILDCARDMATCH.html
https://curl.haxx.se/libcurl/c/CURLOPT_DIRLISTONLY.html
https://curl.haxx.se/libcurl/c/CURLOPT_CUSTOMREQUEST.html
---
https://sourceforge.net/projects/curlftpfs/?source=typ_redirect
这是一个库,但是没有细看,也没有使用。
---
https://blog.csdn.net/wu110112/article/details/72898630
用的这个例子修改的。
---
http://cr.yp.to/ftpparse.html
这个是用来解析服务端返回的字符串的。ttps://blog.csdn.net/wu110112/article/details/72898630例子给的对linux和windows的返回处理有问题。
------------------------------------------------------------------------
1, 在 upload,download 后,执行其它的curl_easy_perform,需要先curl_easy_reset下,要不然在callback function里issue。
2,登录时,一次登录可能不成功,返回的错误文字是“Failed writing received data to disk/application”,用多次尝试的方式。