title: Simple HTTP GET request in groovy
body: <p>I am very newbie for this groovy programming. I have written an API which is running in my local system (<code>localhost:2100</code>).</p>
  
  <p>Now i want to make a simple GET request to this API using groovy code. I searched a lot for this but i cant find the clear guidance. </p>
  
  <p>I tried for this :</p>
  
  <p><a href="http://www.kellyrob99.com/blog/2013/02/10/groovy-and-http/" rel="noreferrer">http://www.kellyrob99.com/blog/2013/02/10/groovy-and-http/</a>
  <a href="http://rest.elkstein.org/2008/02/using-rest-in-groovy.html" rel="noreferrer">http://rest.elkstein.org/2008/02/using-rest-in-groovy.html</a>  etc.. But nothing works.</p>
  
  <p>Also i came across <code>HttpBuilder</code>. I cant get clear idea of this. Please share your ideas.</p>
  
  <p>EDIT:</p>
  
  <p>I tried for this:</p>
  
  <pre><code>def client = new RESTClient("http://localhost:2100");
  def res = client.get(path:"xxx/yyy/zzz")
  </code></pre>
  
  <p>I am receiving error:</p>
  
  <pre><code>Groovy:unable to resolve class RESTClient
  </code></pre>
  
  <p>Whether I need to add dependency in my pom.xml?</p>