【发布时间】:2012-05-16 18:11:10
【问题描述】:
final HttpClient hClient = new DefaultHttpClient();
final HttpPost hPost = new HttpPost(
"http://xxx.xxx");
try {
hPost.setHeader("Accept", "application/json");
hPost.setHeader("Content-type",
"application/json");
hPost.setEntity(new StringEntity(JSON));
// execute request
final HttpResponse response = hClient
.execute(hPost);
final HttpEntity entity = response.getEntity();
Android 返回 05-16 20:02:52.784: W/DefaultRequestDirector(15642): Authentication error: Unable to respond to any of these challenge: {} 我不知道如何解决它。问题出在哪里,我该如何解决?
【问题讨论】:
-
它看起来是 stackoverflow.com/questions/6114455/… 的副本
标签: java android http http-authentication