On Dec 29, 2009, at 1:14 PM, Felipe Gaścho wrote:
> ops..
>
> Content-Type has precedence over Accept ?
>
> strange....... but ok, very good to know.......
>
Not really so strange. Precedence implies either/or. It is really
order of the matching algorithm.
The matching algorithm first selects resource methods that are capable
of consuming an entity, using the Content-Type request header. Then
the algorithm reduces that selection to resource methods that are
capable producing an entity, using the Accept request header. Of that
reduced selection the matching resource method is the one that
consumes an entity of most specific media type and produces an entity
of the most acceptable media type.
Paul.