Skip to content

Instantly share code, notes, and snippets.

@zac260103
Created January 2, 2018 06:40
Show Gist options
  • Save zac260103/f1d691a960ed6aac7910d856a23b0a08 to your computer and use it in GitHub Desktop.
Save zac260103/f1d691a960ed6aac7910d856a23b0a08 to your computer and use it in GitHub Desktop.
HttpEntity<?> request = new HttpEntity<Object>(headers);
Map<String, Object> params = new HashMap<String, Object>();
params.put("name", name);
System.out.println("upload url: " + builder.build().encode().toUri());
RestResponse result = new RestResponse();
try {
ResponseEntity<?> response = customRestTemplate.exchange(builder.build().encode().toUri(), HttpMethod.POST, request, String.class);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment