Re: IE 8 HTML request not working

2009-12-09 Thread Thierry Boileau
Hello Fabian and Erick, thanks to your report, I've relaxed the checks made on the agent properties which was based on a string comparison sensible to the case. Now, the comparison ignore the case which should enable you to use the tunnel filter. The code is available in the svn repository and

Re: IE 8 HTML request not working

2009-12-04 Thread Fabian Mandelbaum
Hello there, I've enabled the TunnelService (Restlet 2.0M5, still didn't switch to M6) like this: public MyApp() { super(); getTunnelService().setUserAgentTunnel(true); } in the constructor of MyApp which extends Application, and IE (tested with IE7, don't know about the

Re: IE 8 HTML request not working

2009-12-04 Thread Thierry Boileau
Hi Fabian, could you tell us what is the user-agent header sent by IE8? Best regards, Thierry Boileau Hello there, I've enabled the TunnelService (Restlet 2.0M5, still didn't switch to M6) like this: public MyApp() { super();

Re: IE 8 HTML request not working

2009-12-04 Thread Fabian Mandelbaum
Hello Thierry, For IE8, the logs show: INFO: 2009-12-0412:43:27192.168.1.100 - - 9000 GET /workspaces - 401 312 - 14 http://192.168.1.10:9000Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2;

Re: IE 8 HTML request not working

2009-12-03 Thread Stephan Koops
Hi, I think this problem is somewhere resolved in Restlet, but I don't know where in the code, and how to activate it. Take a look to the Application properties. best regards Stephan As a workaround you could add browser sniffing code targetting IE on your Restlet/Resource class(es), and

Re: IE 8 HTML request not working

2009-12-03 Thread Thierry Boileau
Hello all, you can turn on the tunneling based on the user agents: application#getTunnelService().setUserAgentTunnel(true); you can find more details here: http://www.restlet.org/documentation/snapshot/jse/api/org/restlet/service/TunnelService.html Best regards, Thierry Boileau Hi, I

IE 8 HTML request not working

2009-12-02 Thread Erick Fleming
Has any found this problem. Firefox and Chrome get directed to the HTML output, but IE 8 is being routed to the JSON call. class SampleResource extends ServerResource { @Get(html) def asHtml() = { new StringRepresentation(h1Hello World/h1.toString, MediaType.TEXT_HTML) }

Re: IE 8 HTML request not working

2009-12-02 Thread Fabian Mandelbaum
Yes, I have found the same behaviour, and not only with IE8, but with IE7 too. The problem seems to be that IE sends an Accept: */* HTTP header and Restlet's content negotiation logic is providing the default representation, in your case JSON (in mine XML), for the Resource. All the other major