URI path is not taking parameters

myurl =
http://twitter.com/statuses/friends_timeline.json?since_id=1060198339
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.

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

actually…
=> “/statuses/friends_timeline.json”

On Tue, Dec 16, 2008 at 2:09 AM, Vapor … [email protected]
wrote:

myurl =
http://twitter.com/statuses/friends_timeline.json?since_id=1060198339
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?

Hassan S. wrote:

What does uri.query print?

Thanks :slight_smile: