Page History
...
Here are some example Accept header field values:
Value | Meaning |
---|---|
text/html | Client is requesting that the resource only be returned as HTML. |
image/* | Client is requesting that the resource be returned as an image, but the sub-type (i.e., JPEG, PNG, etc.) is up to the server. |
image/jpg, image/png; q=.8, */* | Client is requesting that the resource be returned as a JPEG image, but if that is not available then return as a PNG image. If that is not available then return any format that the server determines. |
If the values listed in the Accept header field make it impossible for the server to accommodate, the server is expected to return a 406 Not Acceptable status. Therefore, clients might want to include a wildcard pattern (i.e., */*) in the value to ensure something is always returned.