Here is some example source code for how to use libcurl to upload a file via FTP: curl: curl/docs/examples/ftpupload.c Mac OS X comes with libcurl, so this is a way an application written in C, or Objective C can upload files via FTP.
Ironically, Apple’s own CFFTP functions, which are part of the CoreFoundation are crippled: They can’t create a directory on the server. Pretty useless if you’re trying to put up a web site, for example. This reminds me of Apple’s support for mounting an FTP filesystem in the Finder. Not only is FTP via finder *slow*, but it is read-only. WTF? Usually Apple does a good job of providing fully functional solutions…. but when it comes to FTP they’ve fallen on their face twice.
Categories