Yes I already use the extension-Tunnel (its a nice feature by the way)
and yes, if i explicitly write .htm or .html at the end of the uri it
works. What I want though is that the user gets html even if he doesn't
use any extension.
There are many use cases imaginable, where a user will not know about
extensions and just try an URI (e.g. /SOS/OFFERINGS/WeatherMS)
He should then - per default - get Hypermedia which is human-readable
and points to other representation/resources.
Anyway right now this is not a very urgent problem for me, its just
something thats been bugging me and I thought I'd share ;-)
P.S.
I'm using Restlet 1.1M4
Stephan Koops schrieb:
Hi Ralf,
I only see that feature, but do not used it yet. Thierry, could you help?
Ralf, you could try the extension tunnel. If you add ".html" to the URI
it automaticly sets the acept header to "text/html".
best regards
Stephan
Ralf Bommersbach schrieb:
Ok I set getTunnelService.setUserAgentTunnel(true) in the constructor
of my Application-subclass but no change, still defaults to xml... :-(
Do I have to edit the agent/accept.properties?
My Firefox2 user-agent reads:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.14)
Gecko/20080404 Firefox/2.0.0.14
best regards
Ralf