Created
January 2, 2018 06:40
-
-
Save zac260103/f1d691a960ed6aac7910d856a23b0a08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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