http request and return head field

1.
HTTP requests are divided into request header fields, general header fields, and entity header fields.
The http response contains response header fields, generic header fields, and entity header fields.

Second, http1.1 defines 47 header fields.
1. Common header fields:
cache-control: Tells whether all caching mechanisms can be cached and which type. max-age=0 forces the server to return the latest file content. private: Only want a specific user to return a response.
connection:keep-alive supports long links, close does not support long links.
date: The date the keep was created
Transfer-Encoding:chunked Indicates that the data is sent in a series of chunks.

2. Entity header fields:
allow: http methods supported by the resource.
Content-Encoding: The encoding method applicable to the entity body
Content-Language: The natural language of the entity body
Content-Length: The size of the entity body (unit: bytes)
Content-Location: The URI that replaces the corresponding resource
Content-Type: The media of the entity body Types of

3. Request header fields:
Accept: Media types that the user agent can process
Accept-Charset: Preferred character set
Accept-Encoding: Preferred content encoding
Accept-Language: Preferred language (natural language)

4, the response header field:
Location: Redirect the client to the specified URI

Server:nginx/1.10.3
X-Powered-By:ThinkPHP
Cookie
User-Agent

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325667462&siteId=291194637