如何GET在Ruby中使用参数发出HTTP 请求?
当你正在做的时候很容易做到POST:
require 'net/http'
require 'uri'
HTTP.post_form URI.parse('http://www.example.com/search.cgi'),
{ "q" => "ruby", "max" => "50" }
Run Code Online (Sandbox Code Playgroud)
但我认为没有办法将GET参数作为哈希使用传递'net/http'.