the url is redirected.

try change the url with http://audio.esvonline.org/hw/19023001-19023006.mp3

On Fri, Jul 2, 2010 at 12:25 AM, kevid <alumsimportant / yahoo.ca> wrote:
> require 'net/http'
> url =3D "http://stream.esvmedia.org/mp3-play/hw/19023001-19023006.mp3"
> res =3D Net::HTTP.get_response(URI.parse(url))
> File.open('out.mp3','wb') do |f|
> =A0f.print(res.body)
> end
>
>
> i tried the code above but did not get it work.
>
>