【发布时间】:2016-01-30 16:13:07
【问题描述】:
错误401 unauthorized 表示请求因凭据无效而被拒绝。我正在使用改造向https URL 提出请求,并在执行curl https://external:userName@api-staging.xyz.com/user/get 时获取401 unauthorized,它对我来说非常有效(获得预期的输出)。
我的application 中的Retrofit 实现没有任何问题,因为其他调用工作正常。那是我不能将这样的 URL 传递给retrofit.setEndpoint 的东西吗?
【问题讨论】:
标签: java android android-layout retrofit