Digest authentication in Android using HttpURLConnection
The answer is, that HttpUrlConnection does not support digest. You therefore have to implement RFC2617 by yourself. You can use the following code as a baseline implementation: HTTP Digest Auth for Android. The steps involve (see RFC2617 for reference): If you get a 401 response, iterate over all WWW-Authenticate headers and parse them: Check if … Read more