title: Sending GET request with Authentication headers using restTemplate
body: <p>I need to retrieve resources from my server by sending a GET request with some Authorization headers using <a href="https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/client/RestTemplate.html" rel="noreferrer">RestTemplate</a>.</p>
  <p>After going over the <a href="http://docs.spring.io/spring/docs/3.2.x/javadoc-api/org/springframework/web/client/RestTemplate.html" rel="noreferrer">docs</a> I noticed that none of the GET methods accepts headers as a parameter, and the only way to send Headers such as accept and Authorization is by using the <a href="http://docs.spring.io/spring/docs/3.2.x/javadoc-api/org/springframework/web/client/RestTemplate.html#exchange%28java.lang.String,%20org.springframework.http.HttpMethod,%20org.springframework.http.HttpEntity,%20java.lang.Class,%20java.lang.Object...%29" rel="noreferrer">exchange</a> method.</p>
  <p>Since it is a very basic action I am wondering if I am missing something and there another, easier way to do it?</p>