try {
HttpPost httpPost = new HttpPost(URL);
System.out.println(URL);
UsernamePasswordCredentials credentials = new UsernamePasswordCredentials(username, password);
BasicScheme scheme = new BasicScheme();
Header authorizationHeader = scheme.authenticate(credentials, httpPost);
httpPost.setHeader(authorizationHeader);
httpPost.setEntity(input);
//System.out.println("Executing request: " + httpGet.getRequestLine());
//System.out.println(response);
// response = httpclient.execute(httpGet,responseHandler);