Is there anyway I can implement Http Digest Authentication using Google Http Java Client on Android, the request doesn’t seem to have any exposed methods where I can specify the authentication.
Thanks.
Akshay
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is a feature request filed here: http://code.google.com/p/google-http-java-client/issues/detail?id=163
You can implement this manually by calling HttpRequest.getHeaders().setAuthorization(String), but you’d need to implement the logic to compute the “Authorization” header. If someone can provide the Java logic to compute the “Authorization” header for HTTP Digest, please post it here and we can mark that as the better answer 🙂