HTTP Knowledge points "Summary"

Source: Internet
Author: User

1. What is the HTTP protocol?

The format specification for data transfer between client and server. Full spell: Hypertext Transfer Protocol: Hypertext Transfer Protocol.

2. is the HTTP protocol a stateless protocol? How do I resolve a stateless protocol?

Stateless protocols are not memory-capable for transactional processing. Workaround: Save cookies and session sessions.

3, the composition of the HTTP protocol?

Request messages and response messages.

Request message: Request line, request header field, blank line, message body.

Response message: Status line, Response header field, blank line, message body.

4, the HTTP protocol request way (6 kinds)

Get (Get Resource), POST (transfer entity body), PUT (transfer file), HEAD (get header), delete (delete file), OPTION (ask for supported methods).

5. New features of http1.1

Default Persistent connection Save traffic, as long as the client service side does not explicitly make a disconnect TCP connection, it remains connected, you can send multiple HTTP requests

pipelining, clients can simultaneously send multiple HTTP requests in parallel without waiting for a response

6. Principle mechanism of HTTP protocol implementation

Domain Name resolution---initiates a TCP three handshake---initiates an HTTP request---The server responds to an HTTP request---the browser parses the HTML code---the browser renders the page rendering to the user.

7. The difference between get and post requests (security, amount of data transferred)

A. Get focuses on getting resources from the server, and post focuses on sending data to the server. The Post method is mostly used for pages in forms.

B. Get transfer data via URL request, in the form of field =value, placed behind the URL, and used? Connection, multiple data requests are connected with &, this process the user is visible. The post method encapsulates the request parameter in the HTTP request data, appearing as a name/value.

C. Get transfers are small because they are less efficient due to URL length limitations. Post can transmit large amounts of data, so transferring files can only be done with post.

D. Get is unsafe because URLs are visible and may reveal private information.

8. Advantages and disadvantages of HTTP and HTTPS

Communication plaintext is not encrypted, the content may be eavesdropping, that is, packet capture analysis.

The identity of the communicating party is not verified and may be spoofed.

The message integrity could not be verified and could be tampered with.

https=http+ssl+ Authentication + integrity protection.

9, the characteristics of the HTTP protocol

Support client/server mode, simple, fast, flexible, no connection, no status.

HTTP Knowledge points "Summary"

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.