Re: Re: get from browsers

2010-10-14 Thread Fabian Mandelbaum
Hello Shawn, glad to hear it worked. As for the explanation. Check the javadocs and the sources for the TunnelService stuff while keeping in mind the explanation I gave on my 1st answer. You can think of this setting like an Restlet internal rewriting of 'bad' HTTP headers for lazy/badly designed

RE: Re: get from browsers

2010-10-14 Thread webpost
This worked: this.getTunnelService().setUserAgentTunnel(true); Can you explain a little more why it works so I understand what is going on? Shawn -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2671992

Re: get from browsers

2010-10-13 Thread Fabian Mandelbaum
IE (all versions from IE6 to IE8 IIRC, not 100% sure about IE6), send the Accept: */* HTTP header, meaning basically that it will accept any format for the representation of the resource (even if it's a WEB browser, supposed to get mostly HTML pages). This sometimes triggers 'funny' or unexpected b

get from browsers

2010-10-13 Thread webpost
Restlet 2.0.1 I have two Get annotations defined: @Get("htm|html") and @Get The get @Get returns a serializable object which jackson serializes to json. However when I put the url in a browser I would expect the @Get("htm|html") to be called. I put in some print statement and it seems interne