Digest authentication in Android using HttpURLConnection

前端 未结 5 707
终归单人心
终归单人心 2020-12-03 16:05

as the question allready says, I am trying to do digest authentication in android.
Until now i have used the DefaultHttpClient and it\'s authentication meth

5条回答
  •  忘掉有多难
    2020-12-03 16:43

    For Android, I found the bare-bones-digest library worked well: https://github.com/al-broco/bare-bones-digest

    1. Add one line to build.gradle
    2. Use the example code at the above url

    Works!

提交回复
热议问题