Content Negotiation: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 9: Line 9:
# If there are common formats left, the server picks the one the client marked with the highest priority.
# If there are common formats left, the server picks the one the client marked with the highest priority.
# The server then returns the content that matches the negotiated format.
# The server then returns the content that matches the negotiated format.
== Wildcards ==
Sometimes clients want to specify general classes that they accept. This can be done by using a <code>*</code>. This allows clients to request things like imge types: (<code>image/*</code>), or anything at all: (<code>*/*</code>)


== Content-Language Negotiation ==
== Content-Language Negotiation ==
Aside from negotiating the [[Content-Type Header | Content-Type]] of the response, HTTP also allows clients to negotiate the language of the returned data. This is done in the same way as above but then with the [[Accept-Language Header]].
Aside from negotiating the [[Content-Type Header | Content-Type]] of the response, HTTP also allows clients to negotiate the language of the returned data. This is done in the same way as above but then with the [[Accept-Language Header]].

Navigation menu