Details of the first http request inquiry (request head)

Prior to the interview a lot of people will ask me about the meaning of the http request header fields, especially some partial asked, but obviously very little practical use. I asked stupefied, I intend to use this article a good look.

The main expression of the client request header, which is the browser

Specifically http request, divided into three parts: the request line, a request header, the request body.

Specifically request header section below.

Figure

Accept: represents the browser supports the MIME type.

Input value Example: text / HTML, file application / XHTML + XML, file application / XML; Q = 0.9, Image / WebP, Image / APNG, / ; Q = 0.8

It indicates that the client supported data formats, or client "hope" content type received.

So what is the MIME type? MIME (Multipurpose Internet Mail Extensions) is a description of the type of message content of the Internet standards.

Guess you like

Origin www.cnblogs.com/hight1/p/11258370.html