What are Content-Language and Accept-Language?

后端 未结 5 1563
星月不相逢
星月不相逢 2020-12-01 02:12

I have seen the HTTP headers of Content-Language and Accept-Language, could someone explain what these are for and the difference between them? I h

5条回答
  •  遥遥无期
    2020-12-01 03:03

    The Content-Language entity-header field describes the natural language(s) of the intended audience for the enclosed entity. Note that this might not be equivalent to all the languages used within the entity-body.

    The Accept-Language request-header field restricts the set of natural languages that are preferred as a response to the request

    http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

提交回复
热议问题