private HttpPost postWithToken(URI uri) throws IOException, ParseException {
  HttpPost request=new HttpPost(uri);
  List<NameValuePair> entity=new ArrayList<>();
  entity.add(new BasicNameValuePair("token",csrfToken()));
  request.setEntity(new UrlEncodedFormEntity(entity,Consts.UTF_8));
  return request;
}

private HttpPost postWithToken ( URI uri ) throws IOException , ParseException { HttpPost request = new HttpPost ( uri ) ; List < NameValuePair > entity = new ArrayList < > ( ) ; entity . add ( new BasicNameValuePair ( "token" , csrfToken ( ) ) ) ; request . setEntity ( new UrlEncodedFormEntity ( entity , Consts . UTF_8 ) ) ; return request ; }
post with a csrf token .
