FTP / LibCurl

BlitzMax Forums/BlitzMax Programming/FTP / LibCurl

degac(Posted February) [#1]
Hi
I'm using LibCurl module from Brucey to upload/download files.
Now I need to make some works on the server side, so I'm using the 'Quote' method to send FTP commands.
It seems to work perfectly: CWD, RMD, MKD, STAT, RNFR, RNTO, DELE are working as expected.

I have only one problem: the command to retrieve the list of the content of the working directory (or from another one) doesn't work: I tried LS, DIR, LIST, NLST but everytime I got '***** Quote command returned error *****'
I looked on internet to find the 'official' list of FTP commands.
I even tested with the cmd line commands FTP (but it doesn't recognize NLST or LIST commands) and they are working.

So I can exclude that is a 'server side' problem as LS/DIR from command line works well.

What also could be the problem?

Thanks


Derron(Posted February) [#2]
https://curl.haxx.se/libcurl/c/ftpgetresp.html

https://curl.haxx.se/libcurl/c/CURLOPT_DIRLISTONLY.html

http://stackoverflow.com/questions/35252854/libcurl-sftp-get-full-list-of-files

this uses dirlistonly:
http://stackoverflow.com/questions/2162022/downloading-all-files-in-directory-using-libcurl


I assume it works similar to retrieving a file: but instead of a file-uri you pass the uri of a directory. Result is then the file-list.


bye
Ron


degac(Posted February) [#3]
Ok, thanks - there's always a way to get the results!
It seems that the 'FTP standard' is not so standard :)