I would like to create a C program to send a .xml file to a FTP server which I have been given the username and password to periodically. What would be the easiest way to do this?
One idea I had was to just create strings containing the instructions and execute these using
ftp -u ftp://user:email@example.com/local-file.txt local-file.txt
Probably lftp is a better choice here.
lftp ftp://user:password@host -e "put local-file.name; bye"