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"