Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to let users download a file from my website: http or ftp

Tags:

http

download

ftp

We have some files on our website that users of our software can download. Some of the files are in virtual folders on the website while others are on our ftp. The files on the ftp are generally accessed by clicking on an ftp:// link in a browser - most of our customers do not have an ftp client. The other files are accessed by clicking an http:// link in a browser.

Should I move all the files to the ftp? or does it not matter? Whats the difference?

like image 460
BTB Avatar asked Aug 18 '08 07:08

BTB


1 Answers

HTTP has many advantages over FTP:

  • it is available in more places (think workplaces which block anything other than HTTP/S)
  • it works nicely with proxies (FTP requires extra settings for the proxy - like making sure that it allows the CONNECT method)
  • it provides built-in compression (with GZIP) which almost all browsers can handle (as opposed to FTP which has a non-official "MODE Z" extension)
  • NAT gateways must be configured in a special mode to support active FTP connections, while passive FTP connections require them to allow access to all ports (it it doesn't have conneciton tracking)
  • some FTP clients insist on opening a new data connection for each data transfer, which can leave you with a lot of "TIME_WAIT" sockets
like image 175
Grey Panther Avatar answered Oct 12 '22 21:10

Grey Panther