title: Ruby Net::HTTP end of file reached
body: <p>I'm trying to get an http post request that worked before but anymore to work again.</p>
  
  <pre><code>def post_params
    uri = Addressable::URI.new
    uri.query_values = {
      from: @from_city_id,
      to: @to_city_id,
      tmp_from: @from_city,
      tmp_to: @to_city,
      date: @when_date.strftime('%d.%m.%Y')
    }
  
    uri.query
  end
  
  http = Net::HTTP.new "www.domain.com"
  res = http.post '/', post_params
  raise res.inspect
  </code></pre>
  
  <p>But I end up having a End of file error.
  One more thing: I'm not trying to make a https query.</p>
  
  <p>Thanks for your help</p>