Forum: Ruby URI path is not taking parameters

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Vapor .. (Guest)
on 2008-12-16 12:17
myurl =
"http://twitter.com/statuses/friends_timeline.json?...
uri = URI.parse(myurl)

puts uri.path
=> http://twitter.com/statuses/friends_timeline.json


Where has "?since_id=1060198339" gone?

uri.path then brings different data than I need.
Vapor .. (Guest)
on 2008-12-16 12:18
> puts uri.path
> => http://twitter.com/statuses/friends_timeline.json

actually...
=> "/statuses/friends_timeline.json"
Hassan S. (Guest)
on 2008-12-16 15:17
(Received via mailing list)
On Tue, Dec 16, 2008 at 2:09 AM, Vapor .. <removed_email_address@domain.invalid>
wrote:
> myurl =
> "http://twitter.com/statuses/friends_timeline.json?...
> uri = URI.parse(myurl)
>
> puts uri.path
> => /statuses/friends_timeline.json

Looks right per the URI doc...

> Where has "?since_id=1060198339" gone?

What does `uri.query` print?
Vapor .. (Guest)
on 2008-12-16 18:59
Hassan S. wrote:
> What does `uri.query` print?

Thanks :)
This topic is locked and can not be replied to.