title: Making Ruby Net::HTTP::Get request with cookie
body: <p>I'd like to open my stackoverflow.com page via ruby.<br>
  And I'd like to see it as if I am authenticated.</p>
  
  <p>I took <code>usr</code> cookie from Google Chrome and created the following snippet:</p>
  
  <pre><code>require 'net/http'
  require 'cgi'
  
  url = "http://stackoverflow.com/users/1650525/alex-smolov"
  uri = URI(url)
  http = Net::HTTP.new(uri.host, 80)
  request = Net::HTTP::Get.new(uri.request_uri)
  
  cookie = CGI::Cookie.new("usr", "[my cookie is here]")
  request['Cookie'] = cookie
  r = http.request(request)
  puts r.body
  </code></pre>
  
  <p>It does output a page, but I'm not authenticated there.</p>
  
  <p>Is it possible to make a Net::HTTP::Get request in Ruby with cookie?</p>