HTTP Accept Header meaning

前端 未结 2 897
梦如初夏
梦如初夏 2020-12-13 17:35

When a browser\'s Accept request header says something like the following:

Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,ima         


        
2条回答
  •  余生分开走
    2020-12-13 18:09

    Verbally,this would be interpreted as "application/xml,application/xhtml+xml and image/png are the preferred media types,but if they do not exist,then send the text/html entity,and if that does not exist,send the text/plain entity,if that still does not exist,send an an entity with any other media type."

提交回复
热议问题