Home>Article> What is the default port number of http protocol?

What is the default port number of http protocol?

angryTom
angryTom Original
2020-02-11 18:01:00 57535browse

What is the default port number of http protocol?

What is the default port number of http protocol?

The default port number of HTTP protocol is80, usually used For web services

http port can be changed, but generally the default port is 80. For example, to access a website, you only need to enter the domain name in the browser, which is equivalent to the http:// domain name. At this time In fact, port 80 is used by default. If some websites use port 8080, then the writing method is changed to:http://domain name:8080.

By the way, the port used for the encryptedhttpsprotocol is443.

HTTP protocol

HTTP protocol is the abbreviation of Hyper Text Transfer Protocol (Hyper Text Transfer Protocol), which is used to transmit from the World Wide Web (WWW: World Wide Web) server Hypertext to native browser delivery protocol.

HTTP is a communication protocol based on TCP/IP to transfer data (HTML files, image files, query results, etc.).

The main features are as follows:

1. Simple and fast: When a client requests a service from the server, it only needs to transmit the request method and path. Commonly used request methods are GET, HEAD, and POST. Each method specifies a different type of contact between the client and the server. Due to the simplicity of the HTTP protocol, the program size of the HTTP server is small and the communication speed is very fast.

2. Flexible: HTTP allows the transmission of any type of data object. The type being transferred is marked by Content-Type.

3. 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. This method saves transmission time.

4. Stateless: 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.

5. Support B/S and C/S modes.

For more tutorials on http protocol, please visitPHP Chinese website.

The above is the detailed content of What is the default port number of http protocol?. 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