Home>Article> What kind of transport protocol is http?

What kind of transport protocol is http?

尚
Original
2020-03-03 13:06:08 12045browse

What kind of transport protocol is http?

The full name of HTTP is HyperText Transfer Protocol, which is Hypertext Transfer Protocol. It has been widely used on the WWW since 1990 and is the most commonly used protocol on the WWW today. HTTP It is an application layer protocol.

When you browse the Internet, data is sent and received on the Internet through HTTP between the browser and the web server. HTTP is a stateless protocol based on the request/response model. That is what we usually call Request/Response.

HTTP features:

Support client/server mode.

Simple and fast: When a client requests a service from the server, it only needs to transmit the request method and path. Due to the simplicity of the HTTP protocol, the program size of the HTTP server is small and the communication speed is very fast.

Flexible: HTTP allows the transmission of any type of data object, and the type being transmitted is marked by Content-Type.

No connection: The meaning of no connection is to limit each connection to only process one request. After the server processes the client's request and receives the client's response, it disconnects the connection. This method can save time.

Stateless: The HTTP protocol is a stateless protocol. Stateless means that the protocol has no memory ability for transaction processing. The lack of status means that if subsequent processing requires the previous information, it must be retransmitted, which may result in an increase in the amount of data transferred per connection. On the other hand, the server responds faster when it does not need previous information.

The above is the detailed content of What kind of transport protocol is http?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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