Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

they are a relative quality parameter

they help specify the client preference as to which mime type they would prefer. this one is saying: I prefer text/html,application/xhtml+xml,application/xml; but I'll take */* (anything) if thats all you have.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.