Hi Ashish, I saw your question in StackOverflow (try to not crosspost) as well and replied over there. http://stackoverflow.com/questions/13802406/restlet-client-not-allowing-to-define-custom-authorization-header
Thanks, Jerome -- http://www.restlet.com http://twitter.com/#!/jlouvel 2012/12/10 Ashish Sharma <[email protected]> > 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 suggest me what code needs to be added for the following line > of code that i have: > > clientResource.setChallengeResponse(new > ChallengeResponse(ChallengeScheme.XXXX, bearerToken) > > Creating and adding 'Authorization' header in restlet is giving me errors > from restlet client library. > > thanks in advance > Ashish Sharma > > ------------------------------------------------------ > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3034564 > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3037700

