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 will be available in the 
next snapshot.

Best regards,
Thierry Boileau
> Hello Thierry,
>
> For IE8, the logs show:
>
> INFO: 2009-12-04      12:43:27        192.168.1.100   -       -       9000    
> GET     /workspaces     -       401     312     -       14      
> http://192.168.1.10:9000        Mozilla/4.0
> (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET
> CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC
> 6.0)  -
>
> For IE7, the logs show:
>
> INFO: 2009-12-04      12:45:38        192.168.1.10    -       -       9000    
> GET     /workspaces     -       401     312     -       3       
> http://192.168.1.10:9000        Mozilla/4.0
> (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR
> 3.0.4506.2152; .NET CLR 3.5.30729)
>
> If I add a small debug line to my resource, I get (after authenticating):
>
> INFO: ***DBG: getClientInfo().getAgentName(): MSIE
>
> for both IE7 and IE8, and both get the same representation, a ZIP (one
> of the available representations), which is different from what all
> the other browsers get,  HTML
>
> On Fri, Dec 4, 2009 at 11:13 AM, Thierry Boileau
> <[email protected]> wrote:
>   
>> 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();
>>> Â  Â  Â  Â  getTunnelService().setUserAgentTunnel(true);
>>> Â  Â  }
>>>
>>> in the constructor of MyApp which extends Application, and IE (tested
>>> with IE7, don't know about the others, but I'm sure it will be the
>>> same), is still getting different representations (XML, JSON, ZIP,
>>> instead of HTML) than the rest of the browsers. What's missing?
>>>
>>> Thanks in advance.
>>>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2428859

Reply via email to