Let us assume the following: - there is a resource at http://bla-bla/res/{id} - the server can serve different representations of the resource, say xml or json - GETting the request from the browser returns the respective XML representation, because the browser never adds application/json to the Accept header value
I would like to GET the JSON representation anyway. One option is to use some REST client plugin for the browser and specify the Accept header explicitly asking for application/json. But I am interested to know whether there is support for another option - override the Accept header using a dedicated URL decoration. For instance, adding the ".json" extension to the URL indicates that one wishes to GET the json representation. Adding ".xml" asks for the xml representation, etc... The URL decoration concept can also be used to override the HTTP method. Like adding "!DELETE" at the end makes the GET request treated as DELETE on the server side (useful for client supporting only GET and POST requests). Is there any support for this in Restlet? Thanks. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2890332

