title: How do you make a POST request in ruby 2.3.0 with unlimited read_timeout
body: <p>I have the following block of code, using ruby 2.3.0 and net:http, how do I include a timeout so the server can take more than 60 seconds to respond? I'm having specific challenges with including the array in the body too, when I use something like HttParty</p>
  
  <pre><code>require 'uri'
  require 'net/http'
  require 'open-uri'
  
  url = URI.parse('http://local-tomcat.com:8080/local-api/v1/anobject/create')
  post_params = {"queryToken"=&gt;"4b58f48b-5197-4c86-8783-e15096fe3a6f",
            "tenantId"=&gt;"99218d0e-1757-4fd7-a7c1-5642adcb57e3",
              "projectId"=&gt;"4885536d-06a8-41ed-8002-1619966b14e2",
              "destinations"=&gt;["2cc1053b-20fd-4191-b3f4-219a9099ad63|4885536d-06a8-41ed-8002-1619966b14e2|99218d0e-1757-4fd7-a7c1-5642adcb57e3|5ceabd11-a2b1-4c8e-89b2-c0d75a7d7f8e","515104a7-e4ae-4905-893c-835500f0f962|4885536d-06a8-41ed-8002-1619966b14e2|99218d0e-1757-4fd7-a7c1-5642adcb57e3|5ceabd11-a2b1-4c8e-89b2-c0d75a7d7f8e"],
            "firstExecution"=&gt;true}
  response = Net::HTTP.post_form(url, post_params)
  puts response.body
  </code></pre>