Getting Started with Java Web Development-http Protocol Unit Quiz

Source: Internet
Author: User

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.

    • A.x
    • B.√

  

The default port number for the HTTP protocol is 80

    • A.x
    • B.√

Versions published in HTTP history are 0.9,1.0,1.1

    • A.√
    • b.x

HTTP headers are typically formatted with a colon-separated key value (Key:value)

    • A.x
    • B.√

DNS servers are used to complete domain-to-IP address resolution

    • A.x
    • B.

Getting Started with Java Web Development-http Protocol Unit Quiz

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.