Hi,
I have a question. From my reading of the OAuth 1.0 specification the parameters of a application/x-www-form-urlencoded POST request should be used as part of the base string to generate the signature and that is was is expected by the server I am using. However, the base string produced by the RestTemplate object does not include them. Have I mis-read the specfication or are there steps I need to take to put the form parameters into the base string.
My code:
Code:HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED); MultiValueMap<String, String> mapParameters = new LinkedMultiValueMap<String, String>(); mapParameters.add("data_file[title]", "uploadTestFile"); mapParameters.add("data_file[filename]", "uploadTestFile.txt"); HttpEntity<MultiValueMap<String, String>> entity = new HttpEntity<MultiValueMap<String, String>>(mapParameters, headers); restTemplate.postForLocation(url.toString(), entity);


Reply With Quote