Accept and Accept-Charset - Which is superior?

前端 未结 5 720
攒了一身酷
攒了一身酷 2020-12-08 04:16

In HTTP you can specify in a request that your client can accept specific content in responses using the accept header, with values such as application/xm

5条回答
  •  一个人的身影
    2020-12-08 05:06

    Altough you can set media type in Accept header, the charset parameter definition for that media type is not defined anywhere in RFC 2616 (but it is not forbidden, though).

    Therefore if you are going to implement a HTTP 1.1 compliant server, you shall first look for Accept-charset header, and then search for your own parameters at Accept header.

提交回复
热议问题