title: getting a "connection reset by peer" error when hitting Google Contacts API
body: <p>I'm trying to pull Google Contacts into a Rails application using the Google Contacts API. I've completed the Oauth2 handshake, and am now requesting the protected resource with my access token. Here is the code:</p>
  
  <pre><code>uri = URI('https://www.google.com/m8/feeds/contacts/default/full')
  params = { :client_id =&gt; APP_CONFIG[:google_api_client_id],
             :access_token =&gt; auth.access_token,
             "max-results".to_sym =&gt; max_results
           }
  
  uri.query = URI.encode_www_form(params)
  res = Net::HTTP.get_response(uri)
  </code></pre>