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 ) ; }
Performs an HTTP POST on the given URL . Basic auth is used if both and password are not null .