"An explanation of the HTTP protocol"
? Request Section
* Request Line
* Submission Method:
* There are many ways to submit, commonly used get and post:
* The difference between get and post:
* Get the submitted parameters are displayed on the address bar, and post is not displayed.
* Get is often limited by size, while post has no size limit.
* Get has no request body, while Post has request body.
* Submission Path:
* Protocol version:
* Request Header
* are displayed in the form of key-value pairs. Typically a key corresponds to a value, and there is an individual key that corresponds to more than one value.
* User-agent: Represents the type of browser. ---file download: Download the Chinese file: IE uses Urlencodor to encode, while Fddddddddddddddddirefox uses BASE64 encoding.
* Referer: Represents the source of the Web page. ---anti-theft chain.
* If-modified-since: Typically used with header last-modified in the response to find the local cache.
* Request Body
* is the submit parameter of the Post submission method.
? Response Section
* Response Line:
* Protocol version
* Status Code:
* 200: Success
* 302: Redirect
* 304: Find local cache
* 404: Resource does not exist
* 500: Server Internal Error
* Status Code description
* Response Header: Key value pairs, usually a key corresponding to a value, there is a key corresponding to more than one value.
* Last-modified: Use with if-modified-since in the request to find the local cache.
* Content-disposition: The use of a header information for file download.
* Location: Redirect The path of the jump.
* Refresh: Timed update/timed jump.
* Response Body: Displays the contents of the browser's page.
An explanation of the HTTP protocol