It turns out that if you create, for example, a Net::HTTP::GET request by passing it uri.path, you won't have any of the query parameters on the request. URI provides #request_uri instead, which is simply path plus query, which is exactly what is wanted, I think.
It turns out that if you create, for example, a
Net::HTTP::GET
request by passing ituri.path
, you won't have any of the query parameters on the request.URI
provides#request_uri
instead, which is simplypath
plusquery
, which is exactly what is wanted, I think.