cURL / Mailing Lists / curl-library / Single Mail

curl-library

Using ftpupload.c returns a directory listing in HTML format

From: Nils S <nils_at_meditalk.com>
Date: Tue, 11 Aug 2015 16:02:30 +0200

Hi there,
I am using the example ftpupload.c changing
REMOTE_URL to "192.168.0.151/backup/ftptest/" whereas I get the
directory listing of backup directory in HTML coding as return. I do not
change anything but:

#define LOCAL_FILE "ws_data.txt"
#define UPLOAD_FILE_AS "ws_data2.txt"
#define REMOTE_URL "192.168.0.151/backup/ftptest/"
#define RENAME_FILE_TO "ws_data3.txt"

When I try with
#define REMOTE_URL "ftp://192.168.0.151/backup/ftptest/"
I get error: curl_easy_perform() failed: URL using bad/illegal format or
missing URL.
SO, how to address the local Netgear ReadyNAS FTP server? I can use
command lie access to the NAS...
Can someone PLEASE give me a hint??
I am stuck!!!!
bye for now..
Nils

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-08-11