Home > Operation and Maintenance > Windows Operation and Maintenance > What are the differences between HTTP and FTP

What are the differences between HTTP and FTP

青灯夜游
Release: 2018-12-10 09:18:44
Original
9192 people have browsed it

What are the differences between HTTP and FTP? This article will introduce to you what HTTP and FTP are? Let everyone understand the difference between HTTP and FTP, I hope it will be helpful to you.

What are the differences between HTTP and FTP

HTTP and FTP are both file transfer protocols used to transfer data between clients and servers, but there are differences between them. Before introducing the differences between HTTP and FTP, let's first understand HTTP and FTP.

What is HTTP?

HTTP is Hypertext Transfer Protocol, a set of rules for transferring files (text, graphic images, sounds, videos and other multimedia files) over the World Wide Web. It is the basis of data communication in the Internet, which starts with a request sent by the client and ends with a response received from the web server.

What are the differences between HTTP and FTP

As long as a web user opens a web browser, HTTP will be used indirectly. HTTP is an application protocol that runs on top of the TCP/IP suite of protocols, the Internet's foundational protocols.

What is FTP?

FTP is a file transfer protocol used to upload and download files between an FTP server and a client computer in a network using TCP. Files can be copied from one host to another. .

FTP uses TCP services to transfer files between the client and the server. Two connections will be established, one for data transmission on TCP port number 20, and the other for control on TCP port number 21. Information (commands and responses).

The difference between HTTP and FTP

1. Functional difference

HTTP is used to access different websites on the Internet and transfer web content from the web server to the client's web browser. It is called a one-way system.

FTP is used to upload and download files between FTP servers and FTP clients. Files can be transferred from one host to another, which is called a two-way system.

What are the differences between HTTP and FTP

2. Differences in connection

HTTP only establishes one link: data connection.

FTP establishes two links: data connection and control connection.

3. The difference in port usage

HTTP uses TCP port 80, while FTP uses TCP ports 20 and 21.

4. The difference in file size transferred

HTTP can effectively transfer smaller files, such as web pages; while FTP can effectively transfer large files.

5. Authentication difference

HTTP does not require authentication; while FTP uses a password for authentication.

6. Differences in data storage

Web pages or data content transmitted to the device using HTTP will not be saved in the memory of the device, but transmitted to the device using FTP The data will be saved in the device's memory.

7. Display difference

If the user uses HTTP, http will be displayed in the URL of the website; if the user is using FTP, it will be displayed in the URL ftp.

Summary: The above is the entire content of this article, I hope it will be helpful to everyone's study.

The above is the detailed content of What are the differences between HTTP and FTP. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template