protected HttpURLConnection createConnection(String uri,String method) throws IOException {
  HttpURLConnection connection=createConnection(uri);
  connection.setRequestMethod(method);
  return configureRequest(connection);
}

protected HttpURLConnection createConnection ( String uri , String method ) throws IOException { HttpURLConnection connection = createConnection ( uri ) ; connection . setRequestMethod ( method ) ; return configureRequest ( connection ) ; }
create connection to uri
