Re: Up/Downloading a File to/from Website
Re: Up/Downloading a File to/from Website
- Subject: Re: Up/Downloading a File to/from Website
- From: Jens Alfke <email@hidden>
- Date: Sat, 28 Sep 2013 11:45:38 -0700
On Sep 28, 2013, at 11:35 AM, Gordon Apple <email@hidden> wrote:
> OK, I just got off the phone with them. FTP, SFTP, SSH.
IIRC there used to be some limited FTP support down in CFNetwork. But FTP is an old creaky protocol and best avoided. SFTP is a lot better; despite the name it’s not related to FTP at all. It’s basically file-access requests tunneled through SSH. I don’t know of any SFTP support in the OS, but there are probably some open-source libraries for it by now, so try searching around on Github or Bitbucket.
You don’t want to use SSH directly because it’ll involve sending shell commands (“ls”, “cp”, etc.) to a remote host. Giving your end users access to a shell on your server would be a bad idea — just imagine what someone could do with that if they hacked your app to send malicious commands.
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden