some clarification on accept field in http request

Posted by Salvador Dali on Super User See other posts from Super User or by Salvador Dali
Published on 2012-11-17T02:59:30Z Indexed on 2012/11/17 5:04 UTC
Read the original article Hit count: 539

Filed under:
|

Can anyone enlighten me on the following question:

What do different fields in accept field in HTTP request mean? I can understand the basics that through accept the client is telling the server what type of information it is waiting to receive, so for example:

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

This way the client will tell the server that it can understand three following formats:

  • text/html
  • application/xhtml+xml
  • application/xml

But can someone tell me what this q values mean and that /

Also if I have any flaws in my understanding - please tell me.

© Super User or respective owner

Related posts about http

Related posts about headers