title: Android HTTP Authentication error
body: <pre><code>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();
  </code></pre>
  
  <p>Android returns 05-16 20:02:52.784: W/DefaultRequestDirector(15642): Authentication error: Unable to respond to any of these challenges: {} and I don't know how to fix it. Where is the problem and how can I fix it?</p>