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
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
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();
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;
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
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
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)
}
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
8 matches
Mail list logo