title: Response from a POST request in Groovy RESTClient is missing data
body: <p>I am using groovy <a href="http://groovy.codehaus.org/modules/http-builder/doc/rest.html" rel="nofollow">RESTClient</a> 0.6 to make a POST request. I expect an XML payload in the response. I have the following code:</p>
  
  <pre><code>def restclient = new RESTClient('&lt;some URL&gt;')
  def headers= ["Content-Type": "application/xml"]
  def body= getClass().getResource("/new_resource.xml").text
  /*
   If I omit the closure from the following line of code
   RESTClient blows up with an NPE..BUG?
  */
  def response = restclient.post(
                              path:'/myresource', headers:headers, body:body){it}
   println response.status //prints correct response code
   println response.headers['Content-Length']//prints 225
   println response.data //Always null?!
  </code></pre>
  
  <p>The response.data is always null, even though when I try the same request using Google chrome's postman client, I get back the expected response body. Is this a known issue with RESTClient?</p>