Accept media type negotiation

Compare Accept quality values and wildcards with offered media types. Inspect how more specific matches override broader ranges during selection.

The example value has been entered. Check it immediately or change the value.

Input is processed in the browser. Refreshing returns a sample value.

Result

Instructions and example

Assign each offered type the q of its most specific match, then select the largest q. Ties follow offered order.

text/html receives q=0.5 and application/json q=1, so JSON is selected.

Parameters other than q are rejected. Up to 50 offered types and 100 Accept entries; charset, language and encoding negotiation are separate.

Frequently asked questions

Can a wildcard override a specific q=0?

No. The more specific q=0 excludes that media type.

What happens when every media type has quality 0?

The selection displays 406; no actual server response is sent.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors