What is the HTTP protocol? What are HTTP requests?

云罗郡主
Release: 2019-01-12 15:13:28
Original
7161 people have browsed it

Before learning the front-end, we must learn the HTTP protocol. So, what is the HTTP protocol? What are HTTP requests? Below, the php Chinese website will introduce HTTP in detail.

What is the HTTP protocol? What are HTTP requests?

#1: What is the HTTP protocol?

HTTP protocol is a commonly used protocol on the Internet. All wwww files must comply with this protocol. It is also the basis for data communication. Requests are sent through the client and a server is established. the link to.

2: What are the HTTP requests?

HTTP request methods have different requests in different HTTP versions, and can be used in many ways according to HTTP standards. kind of request.

HTTP1.0 has minute requests, which are GET, POST and HEAD methods, while HTTP1.1 adds five new request methods based on the original ones, namely OPTIONS, PUT, DELETE, TRACE and CONNECT method.

1.GET

GET can request the specified page and return the entity of the website.

2.HEAD

HEAD is very similar to the GET request, except that it cannot return specific content and is mainly used to obtain headers.

3.POST

POST is to send a request with the specified data. On the website, there may be some forms and files uploaded. When the data is included in the request, the POST request This will result in some data changes and modifications.

4.PUT

PUT refers to transmitting data from the client to the server and replacing part of the data.

5.DELETE

DELETE refers to sending a request to the server to delete the specified page.

6.CONNECT

CONNECT is reserved for servers that can be connected to pipes.

7.OPTIONS

OPTIONS is a request that allows customers to see the performance of the server.

8.TRACE

TRACE is mainly used for testing and returns some server requests.

The above is how the browser reads the web page? A full introduction to how to display web pages in a browser. If you want to know more about HTTP video tutorial, please pay attention to the php Chinese website.


The above is the detailed content of What is the HTTP protocol? What are HTTP requests?. 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