URI path is not taking parameters


#1

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.


#2

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

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


#3

On Tue, Dec 16, 2008 at 2:09 AM, Vapor … removed_email_address@domain.invalid
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?


#4

Hassan S. wrote:

What does uri.query print?

Thanks :slight_smile: