title: How to construct an HTTP post with Groovy HTTPBuilder RESTClient
body: <p>The post example from <a href="http://groovy.codehaus.org/modules/http-builder/doc/" rel="nofollow">the docs</a> does not function with http-builder 1.7.1.  </p>
  
  <pre><code>def msg = "I'm using HTTPBuilder's RESTClient on ${new Date()}"
  
  def resp = twitter.post(
          path : 'update.json',
          body : [ status:msg, source:'httpbuilder' ],
          requestContentType : URLENC )
  
  assert resp.status == 200
  assert resp.headers.Status
  assert resp.data.text == msg
  
  def postID = resp.data.id
  </code></pre>
  
  <p>The exception is</p>
  
  <pre><code>wslite.rest.RESTClientException: No such property: body for class: wslite.http.HTTPRequest
  </code></pre>
  
  <p>Trolling the API, it is not obvious how you are supposed to construct the post correctly.  Any ideas?</p>