title: RestTemplate and Cookie
body: <p>I need to send an HTTP cookie, I'm using <code>RestTemplate</code>:</p>
  
  <pre><code>HttpHeaders requestHeaders = new HttpHeaders();
  requestHeaders.add("Cookie", "SERVERID=c52");
  HttpEntity requestEntity = new HttpEntity(null, requestHeaders);
  ResponseEntity responses = restTemplate.exchange(webService.getValidateUserUrl(),
         HttpMethod.POST, requestEntity,  String.class, mapValidateUser);
  </code></pre>
  
  <p>However, the receiving server doesn't see the cookie.</p>