Hi Ruben! The "Accept" header is the one which influences which variant of a resource the server will return. Here's an old post from Jerome about doing it with Restlet:
http://osdir.com/ml/java.restlet/2007-04/msg00006.html In which the meat is: request.getClientInfo().getAcceptedMediaTypes(). add(new Preference(MediaType.TEXT_XML)); Response response = client.handle(request); Or have a look at the ClientInfo javadocs: http://www.restlet.org/documentation/1.1/api/org/restlet/data/ClientInfo.html If you aren't using Restlet on the client side, but know how to set headers with your client API, just review the Accept header part of the HTTP spec: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html ... and put in an appropriate header with the MIME types you want. I say "types" because the client can give multiple preferences, and the server should pick the best one. On the Restlet side, in Resources, this will manifest as the media type of the requested Variant. - Rob On Sat, Jan 24, 2009 at 2:13 AM, <[email protected]> wrote: > I don't understand how to request a specific representation of a ressource > from the client. First I thought of setting the MediaType for the clients > 'Request', but that isn't possible. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1046810

