title: How to use elastic search HTTP/REST clients with shield
body: <p>As we are planning to use shield plugin to provide authentication to elastic search with RESTFUL Clients, we couldn't find any solution to implement.</p>
  
  <p>We can do the same with "CURL" as follows</p>
  
  <pre><code>      curl -u es_admin -XGET 'http://localhost:9200/'
  </code></pre>
  
  <p>But how to implement the same with REST Client. do we need set any header properties??. if so,please guide me with proper solution.</p>