What are the questions about the HTTP protocol class
Editor to share with you about the HTTP protocol problems, I believe that most people do not know much, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
1. What are the main features of the HTTP protocol class?
Simple and fast: refers to each resource character UII, which is fixed, uniform resource character,
Flexibility: the header has data types, and different data types can be transmitted through an http protocol.
No connection: the connection is broken at once.
Stateless: the client and the server are two identities, and the identity of the two connectors cannot be distinguished.
2. What are the components of the message?
Request message:
The request line contains: http method, page address, http protocol, version
Request header: key&value value to tell the server what I want
Blank line
Request body
Response message:
Status line, response header, blank line, response body
3. What are the methods in the HTTP protocol class?
GET--- acquires resources
POST--- transport resources
PUT--- update resources
DELETE--- Delete Resources
HEAD--- gets the first part of the message
4. The difference between post and get
5. What are the HTTP status codes?
1xx: prompt message-indicates that the request has been received. Continue processing.
2xx: successful-indicates that the request has been successfully received
3xx: redirect-- further operations must be taken to complete the request
4xx: client error-request has syntax error or request cannot be implemented
5xx: server error-the server failed to fulfill a legitimate request
200 OK: client request succeeded
206PARTIAL CONTENT: the client sends a GET request with a range header, and the server completes it. Range means scope.
301 moved permanently: the requested page has been transferred to the new url (permanent redirect)
FOUND: the requested page has been temporarily transferred to the new URL (temporary redirect)
NO MODIFIED: the client makes a conditional request for the buffered document, and the server tells the client that the previously buffered document can continue to be used (cached)
6. What is persistent link
Version 1.1 supports persistent links, but not 1.0
7. What is pipelining
Pipelining must be through persistent connections and must be supported by http version 1.1 or above
Only get and head requests can be pipelined, and POST is limited
The pipeline mechanism should not be activated when creating a connection for the first time, because the server does not necessarily support the http1.1 version protocol
These are all the contents of this article entitled "what are the questions about HTTP protocol classes?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!