AndroidHttpClient client = AndroidHttpClient.newInstance("AndroidAgent");
HttpGet request = new HttpGet(uri);
String credentials = username + ":" + password;
String base64EncodedCredentials = Base64.encodeToString(credentials.getBytes(), Base64.NO_WRAP);
request.addHeader("Authorization", "Basic " + base64EncodedCredentials);
HttpResponse response;
Do I drop the password?
updated by @nate: 02/20/15 07:10:54PM