HTTP Review Notes Summary

Source: Internet
Author: User
Tags domain name server browser cache

1, Status code: 1XX information Prompt 2xx response Success 3xx redirect 4xx client error 5xx server-side error

200 response succeeded 201 created 204 not content succeeded, no resource returned

302 http/1.0 Found client uses the URL of the location header to temporarily locate the resource 303 http/1.1 see other get resources with another URL 304 not modified

400 Error Request 401 Access resource insufficient permissions (requires user name password login) 403 Forbidden 404 file does not exist 405 server does not support customer request mode

500 Server Internal Error

2, Http has get (request), POST (transmission information), PUT (store, transfer file), HEAD (Get message header), Delete,options (ask support method), Connect,trace request mode

3, the domain name resolution process: (1) Check the browser cache (2) Find the operating system cache host (3) local domain name server (4) root server domain name server

4. The difference between get and post

(1) Get request parameter in HTTP request header, post data in the body part of the request

(2) HTTP does not limit the size of the transmitted data, nor the URL length limit, the browser will limit the length of the URL, so get will be limited

(3) Get can be displayed at URL address, post does not display

(4) Get can be cached, Post does not

(5) Back button/refresh. Post does not resubmit data

4, HTTP Main features: 1, support client/server-side mode 2, simple and fast 3, flexible 4, no connection 5, no status

5. The difference between post and put

Post sends two requests, generates two posts

The request behind the put puts the front overlay

6. Cookies identify the user by logging information on the client and track the session

HTTP protocol is a stateless protocol, once the data exchange is complete, the connection is closed

7, the cookie does not provide the modification, the deletion operation.

Modify, just create a new cookie with the same name to add to response overwrite the original cookie

Delete, new name Cookie,maxage set to 0

8. HTTP Web request: A TCP connection is first established and the client sends an HTTP request. Server response, shutting down TCP

9, https: (1) client initiates HTTPS request 443 port

(2) Server-side configuration certificate

(3) Transfer certificate, public key

(4) Client resolution certificate (Verify public key and generate random number)

(5) The client transmits encrypted information (random number encryption)

(6) Decryption of the service end with private key

10. Man-in-the-middle attack: DNS, Proxy Server

11. HTTP Caching

Last-modified: On first request, the server returns the last modified time of the resource

If-modified-since Server vs. time when requested again

Etag: identifier (first return)

If-none-match: Server comparison

Reference books (recommended): Schematic http,http authoritative guide

--------------------------------------------------------------------------------------------------------------

The above for personal notes collation, if there is an error, please correct

HTTP Review Notes 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.