Authentication Error when using HttpPost with DefaultHttpClient on Android

后端 未结 4 1456
余生分开走
余生分开走 2020-12-16 16:20

I\'m running into a strange problem using HttpClient. I am using a DefaultHttpClient() with HttpPost. I was using HttpGet with 100% success but now trying to switch to HttpP

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-16 17:12

    Not specifying a Callback URL for my Twitter App resulted in the same error for me:

    Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth realm="https://api.twitter.com"}
    

    Setting a callback URL on Twitter fixed the problem

提交回复
热议问题