1.Multi-Select
For HTTP status codes, the following statements are correct:
- A. Status code 302 indicates that there is an error in the HTTP request sent by the browser
- The B.http status code is a three-bit decimal integer, and the common range is 100~599
- C. Status code 200 indicates successful request
- D. Status code 5xx, etc. starting with 5, is a service-side error
- E, status code 500 indicates a malformed client request
The role of the User-agent head is:
- A. In general, the server can determine the client type based on this header field, and then customize the response
- B. Can send multiple requests on one connection
- C. What browser can be used to identify the HTTP request being sent
- D. Caching that can be used to implement client resources
- E. The specified virtual host can be accessed through this header field
- F. Can be used to carry user authentication information
In terms of the HTTP 1.1 protocol, which of the following is true:
- A.http is a stateless protocol with no correlation between front and back requests
- B. We can debug the entire process of HTTP requests with Chrome's Debugging tools
- C. The request line consists of three parts, namely the request method, the resource path, the protocol version number
- D. The status line of the response has the HTTP protocol version number, status code, and a status description
- E.http 1.1 is the version of the HTTP protocol that is now widely used in practical applications
2. Judgment (2 points)
The request body cannot be empty in an HTTP request message.
The default port number for the HTTP protocol is 80
Versions published in HTTP history are 0.9,1.0,1.1
HTTP headers are typically formatted with a colon-separated key value (Key:value)
DNS servers are used to complete domain-to-IP address resolution
Getting Started with Java Web Development-http Protocol Unit Quiz