code: public static Response post(String url, String password, String username)
          throws URISyntaxException, UnsupportedEncodingException, HttpException {
          return postParams(new HttpPost(url), new ArrayList<NameValuePair>(), new UsernamePasswordCredentials(username, password), null);
      }
docs: Performs an HTTP POST on the given URL.
  Basic auth is used if both and password are not null.
  
  @param url      The URI to connect to as String.
  @param username Credentials - username
  @param password Credentials - password
  @return The HTTP response as Response object.
  @throws URISyntaxException
  @throws UnsupportedEncodingException
  @throws HttpException