title: Open-Uri Alternative - Getting a response from a website
body: <p>The following code works in Ruby 1.9.3p-551</p>
  <pre><code>require &quot;open-uri&quot;
  
  res = open(&quot;http://example.com/version&quot;).read
  
  p res =&gt; {&quot;buildNumber&quot;: 2496, &quot;buildDate&quot;: &quot;2015-09-29 11:18:02 +0200&quot;, &quot;timestamp&quot;: 1443639212 }
  </code></pre>
  <p>In any Ruby version higher than 1.9.3 I get the following error;</p>
  <pre><code>from /Users/imac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/net/http/response.rb:357:in `finish': incorrect header check (Zlib::DataError)
  </code></pre>
  <p>I need to use a higher version as this will be used in a Rails 4 app.
  Any ideas for alternatives?</p>