require 'net/http'
url = "http://stream.esvmedia.org/mp3-play/hw/19023001-19023006.mp3"
res = Net::HTTP.get_response(URI.parse(url))
File.open('out.mp3','wb') do |f|
  f.print(res.body)
end


i tried the code above but did not get it work.