title: HTTPS connection with basic auth result into Unauthorized
body: <p>I am trying to access <a href="http://developer.37signals.com/basecamp/index.shtml" rel="noreferrer">Basecamp API</a> from my Android/Java source code following way ....</p>
  
  <pre><code>import org.apache.http.HttpResponse;
  import org.apache.http.StatusLine;
  import org.apache.http.client.ResponseHandler;
  import org.apache.http.client.methods.HttpGet;
  import org.apache.http.impl.client.BasicResponseHandler;
  import org.apache.http.impl.client.DefaultHttpClient;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.webkit.WebView;
  
  public class BCActivity extends Activity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          DefaultHttpClient httpClient = new DefaultHttpClient();
  
          //final String url = "https://encrypted.google.com/webhp?hl=en"; //This url works
          final String url = "https://username:password@projectsource.basecamphq.com/people.xml"; //This don't
          HttpGet http = new HttpGet(url);
          http.addHeader("Accept", "application/xml");
          http.addHeader("Content-Type", "application/xml"); 
  
          try {
  
              //  HttpResponse response = httpClient.execute(httpPost);
              HttpResponse response = httpClient.execute(http);
  
              StatusLine statusLine = response.getStatusLine();
              System.out.println("statusLine : "+ statusLine.toString()); 
  
              ResponseHandler &lt;String&gt; res = new BasicResponseHandler();  
  
              String strResponse = httpClient.execute(http, res);
              System.out.println("________**_________________________\n"+strResponse);
              System.out.println("\n________**_________________________\n");
  
          } catch (Exception e) {
              e.printStackTrace(); 
          }
  
          WebView myWebView = (WebView) this.findViewById(R.id.webView);
          myWebView.loadUrl(url);//Here it works and displays XML response
  
      }
  }
  </code></pre>
  
  <p>This URL displays the response in <code>WebView</code>, but shows Unauthorized exception when I try to access through <code>HttpClient</code> as shown above.</p>
  
  <p>Is this is right way to access <strong>Basecamp API</strong> through Android/Java?
  or
  Please provide me a right way to do so.</p>