Reputation: 41
how can I fix the bad uri problem? I get these message.
The Code
puts "GET ?"
input = "https://www.xxxxxxxxxx.de/odata/"+gets+"/"
uri = URI.parse(input)
Upvotes: 0
Views: 110
Reputation: 80065
The result of gets
ends with \n
, a newline. Not wanted here, so chomp it:
input = "https://www.xxxxxxxxxx.de/odata/" + gets.chomp + "/"
Upvotes: 3