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.
9f6e775366f2f607647fab8eeed66507?d=identicon&s=25 Vapor .. (vapor)
on 2008-12-16 11: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.
9f6e775366f2f607647fab8eeed66507?d=identicon&s=25 Vapor .. (vapor)
on 2008-12-16 11:18
> puts uri.path
> => http://twitter.com/statuses/friends_timeline.json

actually...
=> "/statuses/friends_timeline.json"
Bee69cfed999cd13e3bff73d472a39ee?d=identicon&s=25 Hassan Schroeder (Guest)
on 2008-12-16 14:17
(Received via mailing list)
On Tue, Dec 16, 2008 at 2:09 AM, Vapor .. <vaqas.ashraf@gmail.com>
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?
9f6e775366f2f607647fab8eeed66507?d=identicon&s=25 Vapor .. (vapor)
on 2008-12-16 17:59
Hassan Schroeder wrote:
> What does `uri.query` print?

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