Quote:
Originally Posted by dromey
I need to logon to an ftp using a user-name and password, send a file, get a file and then logoff.
for example:
ftp 1.2.3.3
Connected to 1.2.3.4.
Name (1.2.3.4:user): user-name
Password required for user-name.
Password: password
User user-name logged in.
ftp>
and then send a file and then receive a file.
Two questions:
1) How to send and recevie files with ftp?
2) how to automate this from a c++ program. I have tried system() for each line above but it does nothing.
I am working on an embedded platfrom and have few programs current available so would prefer to use ftp rather than kermi or lftp.
Any ideas?
|
There is web search, you know ? E.g.
https://duckduckgo.com/?q=free+C%2B%2B+FTP+library . An in my case second match yields
http://stackoverflow.com/questions/1.../c-ftp-library and there one comes across libCurl.
Which, of course, can be found at
http://curl.haxx.se/ .