C
C
CloudMonster2014-03-24 19:16:10
PHP
CloudMonster, 2014-03-24 19:16:10

Which is better - FTP or HTTP?

Hello!
What is the best protocol for downloading files from the site? FTP or HTTP?
What is the difference between them? Is there a difference in download speed?
And which would be safer?

Answer the question

In order to leave comments, you need to log in

7 answer(s)
S
svd71, 2014-03-24
@CloudMonster

ftp is better suited for downloading files, especially in bulk and managing them. The protocol was created specifically for this.
http is the best protocol for downloading files. If it is supposed to provide download access to everyone, then http is safer for the hoster. The protocol does not provide for the management and modification of files, which is much more secure than ftp.
Although both protocols are open, and you need to transfer secret data (not for everyone), you can use their encrypted counterparts sftp and https.

S
Stepan, 2014-03-24
@L3n1n

From the series "Which is better: a colored refrigerator or a washing machine with wi-fi"

V
Vlad Zhivotnev, 2014-03-24
@inkvizitor68sl

More secure - https.
It is easier for users to download via http(s).

K
Konstantin Romanov, 2014-03-24
@evanto

wiki FTP
wiki HTTP
is more secure than HTTPS

S
SHAKIRA, 2014-03-25
@SHAKIRA

looking for what. for uploading files of course ftp, but this is only for administration. and it is better for users to give everything through http. just do not create unnecessary difficulties for users. many people know less about FTP than about torrents and how to use it I think a 13 year old girl will not understand

H
hadra, 2014-03-25
@hadra

FTP is possible, but as previously written it is suitable for torrents or large files.
Best over http with public and private key, or as a paid alternative to https

A
AndrewDnt, 2021-12-01
@AndrewDnt

I found it on the net.
==============
For a small single file and a slow connection, FTP will work best. When receiving multiple files in a row (especially small ones), HTTP usually performs better.
===============
What makes FTP fast?
there are no meta descriptions in the transmitted stream, only pure binary data. Reference data goes in a separate connection;
there is no overhead for transcoding the transmitted data.
What makes HTTP fast?
reusing existing persistent connections improves TCP performance, no time wasted creating new connections;
pipeline processing allows you to quickly request multiple files from the same server;
(automatic) traffic compression reduces the amount of transmitted data, this can increase the transmission speed under the condition of a fast client and server and a slow communication channel;
no control commands in the data stream, it saves processing time.
Ultimately, the net result depends of course on the specific details, but I would argue that for single static files you won't be able to see a perceptible difference.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question