title: POSTing large amounts of data with HTTParty
body: <p>I'm using HTTParty to post information to a server using the following code:</p>
  
  <pre><code>this_component = {"name" =&gt; "something", "ip" =&gt; "localhost", "logs" =&gt; logs_to_push}
  payload = {"payload" =&gt; JSON.dump(this_component)}
  response = JSONClient.post("http://localhost:8080/log", :body =&gt; '', :query =&gt; payload)
  </code></pre>
  
  <p>The problem is that I get a <code>Connection reset by peer (Errno::ECONNRESET)</code> message when the POST actually executes, which I'm pretty sure is caused by my payload being too large (as <code>logs_to_push</code> is an array with ~200 log lines in it). How would I refactor the above so that I could push this data successfully?</p>