title: not getting headers passed with RestTemplate.getForObject
body: <p>I am newbie using Spring . I am working on a code trying to pass headers using <strong>restTemplate.getForObject</strong> </p>
  
  <p>client side :</p>
  
  <pre><code>String userServiceUrl = "http://localhost:8080/SampleRest/api/user/";
  HttpHeaders headers = new HttpHeaders();
  headers.set("Authorization", UUID.randomUUID().toString() );
  restTemplate.getForObject(userServiceUrl + "{id}",User.class,HttpMethod.GET,headers) ;
  </code></pre>
  
  <p>however on server the request header  "Authentication" is not passed at all . there is no header "Authentication"</p>
  
  <pre><code>requestHeaders.get("Authorization").get(0) //yields null exception 
  </code></pre>
  
  <p><em>I cannot use restTemplate.exchange</em> </p>
  
  <p>what am I doing wrong ?</p>
  
  <p>Help will greatly appreciated </p>