title: Properly build http get request in ruby
body: <p>I want to request user information from an API using ruby so I'm following this ruby http cheat sheet: </p>
  
  <p><a href="http://augustl.com/blog/2010/ruby_net_http_cheat_sheet/" rel="nofollow">http://augustl.com/blog/2010/ruby_net_http_cheat_sheet/</a> </p>
  
  <p>This is what I'm using so far:</p>
  
  <pre><code>    #!/usr/bin/ruby
      require "net/http"
      require "uri"
  
      uri = URI.parse("https://cirrus.app47.com/api/users/obfuscated_userID")
      http = Net::HTTP.new(uri.host, uri.port)
      request = Net::HTTP::Get.new(uri.request_uri)
      request.initialize_http_header({"X-Token" =&gt; "obfuscated-TokenString"})
      request.initialize_http_header({"Accept" =&gt; "application/json"})
  
      response = http.request(request)
      puts response.to_s
  </code></pre>
  
  <p>Printing the response  gives me <code>#&lt;Net::HTTPBadRequest:0x007fe37cac2da0&gt;</code> so what am I doing wrong to build or execute the request?</p>