title: apache httpclient doesn't set basic authentication credentials
body: <p>Have a look at the following code:</p>
  
  <pre><code>DefaultHttpClient http = new DefaultHttpClient();
              http.getCredentialsProvider().setCredentials(
                          new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT), 
                          new UsernamePasswordCredentials( 
                                                  Configuration.username, 
                                                  Configuration.developerKey ) );
  
              HttpPost post = new HttpPost(strURL);
              StringEntity entity = new StringEntity( ac.toXMLString() );
              entity.setContentType("text/xml");
              post.setEntity( entity );
              org.apache.http.HttpResponse response = http.execute( post );
  </code></pre>
  
  <p>It produces no errors. However a response from the server I get "No Authorization header". Checking the request with Wireshark unveils that there is indeed no basic authentication set. </p>
  
  <p>How is that possible?</p>