Hello Jerome and all Restlet fans!

I have spent my last 2 days trying to set the authorization header to a
certain value, using the restlet gwt api. However, I was unsuccessful, so I
started looking at the source code. You specifically said in the previous
message that "an authorization header" is automatically created for you when
you specify a ChallengeResponse object (also mentioned in wiki), but the
only code that actually does something with the ChallengeResponse object is
located in GwtHttpClientHelper lines 86-92:

            if (request.getChallengeResponse() != null) {
                result.getRequestBuilder().setUser(
                        request.getChallengeResponse().getIdentifier());
                result.getRequestBuilder().setPassword(
                        String.valueOf(request.getChallengeResponse()
                                .getSecret()));
            }

I have tried all kind of value combinations, but none showed the
"Authorization" header in Firebug. WHAT AM I MISSING here? PS: I don't need
a password set here, just a association between "Authorization" -> "Id" in
headers map

Thanks, Alex
-- 
View this message in context: 
http://n2.nabble.com/Setting-Http-Authorization-header-part-2-tp4051325p4051325.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

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

Reply via email to