Home > Article > Web Front-end > What is http protocol
HTTP is Hypertext Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web, such as the application layer for transmitting HTML documents. The http protocol is mainly used for communication between Web browsers and Web servers.
#The operating environment of this article: Windows 7 system, Dell G3 computer.
For people who often surf the Internet, they are no stranger to http, but many of them don’t quite understand what the http protocol is. Below, php Chinese website will introduce the http protocol to you.
1: What is the http protocol
HTTP is the Hypertext Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web, such as the application layer for transmitting HTML documents. The http protocol mainly Used for communication between web browsers and web servers.
For example, when you enter a URL into your browser, an HTTP command is actually sent to the web server, instructing it to obtain and transmit the requested web page, thus controlling the work of the World Wide Web and displaying the format of the web page.
HTTP is called a stateless protocol because each command is executed independently and does not need to know the command before it. This is also the main reason why the website cannot respond intelligently to user input. This shortcoming of HTTP has been addressed by many new technologies, including ActiveX, Java, JavaScript, and cookies.
【Recommended reading: What is the difference between https and http】
2: What is HTTPS
## HTTPS is a secure version of HTTP that enables communication between browsers and websites and is protected by Transport Layer Security ( TLS) or its predecessor Secure Sockets Layer (SSL) for encryption.
Three: HTTP status code
HTTP status code is a response code provided by the web server, which helps to determine The cause of the problem, for example, "404 File Not Found" is a common HTTP status code that means the web server cannot find the file you requested. Or the web page or other document loaded in the web browser has been moved or deleted, or you entered the wrong URL or document name. Understanding the meaning of HTTP status codes can help us figure out the problem.
The above is a complete introduction to what the http protocol is. If you want to know more about HTML tutorial, please pay attention to the php Chinese website.
The above is the detailed content of What is http protocol. For more information, please follow other related articles on the PHP Chinese website!