Re: another CookieAuthenticator mystery

2012-12-10 Thread Tim Peierls
Here's a better candidate for the default implementation of CookieAuthenticator.challenge: @Override public void challenge(Response response, boolean stale) { Reference ref = response.getRequest().getResourceRef(); String redirectQueryName = getRedirectQueryName(); Stri

Restlet client not allowing to define custom 'Authorization' header

2012-12-10 Thread Ashish Sharma
I need to put following rest request using restlet client: GET https://www.xyz.com/resource/blah/ Authorization: Bearer XToken I am able to get the XToken in a separate call, but in the presented call i am unable to set the 'Authorization' header in my ClientResource object. Can somebody sugges

expect/continue handshake

2012-12-10 Thread Ishaaq Chandy
Hi all, I have a client app that is communicates using a ClientResource to a ServerResource. The latter is managed using the annotations mechanism - much like what is documented here: http://wiki.restlet.org/docs_2.0/13-restlet/27-restlet/328-restlet/285-restlet.html The client sends large payload