When a browser accepts the request header as something like the following:
accept Do: Application / Xml, App / XHTML + XML, Text / html; Q = 0.9, text / plain; Q = 0.8, image / PNG, * / *; Q = 0.5 This means that application / xml , application / xhtml + xml , and text / html All in one quality is 0.9 ? Or this means that the default is in application / xml and application / xhtml + xml ( q = 1 ) And text / html in q = 0.9 is the ultimate? I formerly believed, but was hoping that someone knows more definitely.
No, if missing q = 1.0 is assumed: One or more acceptable parameters of each media category can be followed, which is a relative quality factor using a qualifying scale of 0 to 0. [Â??] | 1 (Section 3.9) The default value is q = 1.
Then the given value is defined as: â ???? Applications / xml , application / xHTML + xml , and image / PNG are preferred media types, but if they are not present then Text / html unit ( text / html; q = 0.9 ), and if that does not exist, then text / plain unit ( Text / plain; Q = 0.8 ), and if that does not exist, then send an entity with any other media type ( * / *; q = 0.5 ).
Comments
Post a Comment