title: HTTPBuilder set requestBody on GET method
body: <p>Using cURL I can send a GET request with a body.  Example:</p>
  
  <pre><code>curl -i -X GET http://localhost:8081/myproject/someController/l2json -H "content-type: application/json" -d "{\"stuff\":\"yes\",\"listThing\":[1,2,3],\"listObjects\":[{\"one\":\"thing\"},{\"two\":\"thing2\"}]}"
  </code></pre>
  
  <p>Here is the JSON in a reasonable format for legibility's sake:</p>
  
  <pre><code>{"stuff":"yes",
  "listThing":[1,2,3],
  "listObjects":[{"one":"thing"},{"two":"thing2"}]}
  </code></pre>
  
  <p>Normally <code>-d</code> will tell cURL to send a POST but I have confirmed that the <code>-X GET</code> is overriding that and it is sending GET.  Is it possible to replicate this with HTTPBuilder?</p>
  
  <p>I have done:</p>
  
  <pre><code>def http = new HTTPBuilder( 'http://localhost:8081/' )
  
  http.post(path:'/myproject/myController/l2json', body:jsonMe, requestContentType:ContentType.JSON) { resp -&gt;
    println "Tweet response status: ${resp.statusLine}"
    assert resp.statusLine.statusCode == 200
  }
  </code></pre>
  
  <p>Which works, but if I change <code>.post</code> to <code>.get</code> I get the error:</p>
  
  <pre><code>Cannot set a request body for a GET method. Stacktrace follows:
  Message: Cannot set a request body for a GET method
  Line | Method
  -&gt;&gt; 1144 | setBody              in groovyx.net.http.HTTPBuilder$RequestConfigDelegate
  </code></pre>
  
  <p>Is there a way to send a GET with a request body using HTTPBuilder?</p>