Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update documentation to use `uri.request_uri` instead of `uri.path` #35

Closed
indirect opened this Issue · 0 comments

2 participants

@indirect

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.

@drbrain drbrain closed this issue from a commit
@drbrain Explain the proper way of sending parameters
For GET, HEAD and other requests that do not allow a body you send the
query params in the request line, but in POST and other requests that do
you send such parameters in the body.

Now this difference is explained better in the top-level documentation.

Fixes #35
24c70e0
@drbrain drbrain closed this in 24c70e0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.