Here is my code: I have got xml file as output and i need to get one specific tag from that file try {
RestTemplate restTemplate = new RestTemplate();
final String url = "https://wildfire.paloaltonetworks.com/publicapi/get/verdict";
String apikey = "f719c27d2063d2e25579681a64ebc1ba";
String hash = "a1a3b09875f9e9acade5623e1cca680009a6c9e0452489931cfa5b0041f4d290";
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);
MultiValueMap<String, String> map = new LinkedMultiValueMap<String, String>();
map.add("apikey", apikey);
map.add("hash", hash);
HttpEntity<MultiValueMap<String, String>> request = new HttpEntity<MultiValueMap<String, String>>(map, headers);
ResponseEntity responseEntity = restTemplate.postForEntity("https://wildfire.paloaltonetworks.com/publicapi/get/verdict", request, String.class);
System.out.println(responseEntity);