title: sending empty content with HttpClient
body: <p>I am trying to connect to an API of another company. 
  from the doc there is ::</p>
  
  <blockquote>
    <p>even with your GET request, you'll need to include the Java equivalent of
         <code>curl_setopt($ch, CURLOPT_POSTFIELDS, $content),</code> and you can set <code>$data</code> equal
         to an empty array.</p>
  </blockquote>
  
  <p><code>$content</code> in their example is an empty JSON array.</p>
  
  <p>I am using <code>org.apache.commons.httpclient</code>.</p>
  
  <p>i am not sure how to add post fields to a <code>org.apache.commons.httpclient.methods.GetMethod</code>  or if it is even possible.</p>
  
  <p>i tried faking with a Content-Length of 2 but the GET times out (probably looking for content that i am not providing. if i remove the content-length i get an invalid response from the api server)</p>
  
  <pre><code>   HttpClient client = new HttpClient();
     GetMethod method = new GetMethod("https://api.xxx.com/account/");
     method.addRequestHeader("Content-Type", "application/json");
     method.addRequestHeader("X-Public-Key", APKey);
     method.addRequestHeader("X-Signed-Request-Hash", "xxx");
     method.addRequestHeader("Content-Length", "2");
  
     int statusCode = client.executeMethod(method);
  </code></pre>