title: Curl get request in Ruby
body: <p>Would be very grateful if someone could help me convert this curl request into ruby?I have Been trying for a while and can't get the syntax correct.</p>
  
  <pre><code>curl -v -H "Content-Type: application/json" -H "X-Knack-Application-Id:000000" -H "X-Knack-REST-API-Key:000000" https://api.knackhq.com/v1/objects/object_6/records
  </code></pre>
  
  <p>tried:</p>
  
  <pre><code>uri = URI('https://api.knackhq.com/v1/objects/object_1/records')
  
  
  Net::HTTP.start(uri.host, uri.port,
                :use_ssl =&gt; uri.scheme == 'https') do |http|
                        request = Net::HTTP::Post.new uri
  
                        # API details of Knack
                        request["X-Knack-Application-Id"] = '56e72cd003219158'
                        request["X-Knack-REST-API-Key"] = 'd9c343d2-2a4b-291e0712a63a'
  
              end
  </code></pre>