G
Guest
Hi, sorry for the repost, but I can't seem to reply without registering,
and I can't seem to register... so I'm in quite a predicament (if
there's a way to reply as a guest, please let me know)
I was told this as a solution to my problem:
require "open-uri"
File.open("my.mp3","wb") do |file|
file << open("http://...")
end
however, this only works for files that are located directly at that
location i.e. http://random.../random.mp3, not for php hosted files like
the examle I had given. Please help!
and I can't seem to register... so I'm in quite a predicament (if
there's a way to reply as a guest, please let me know)
I was told this as a solution to my problem:
is it possible to download a file with a PHP hidden URL?
when the link is clicked on in firefox, it will prompt the user to
either open or save, for example...
http://www.esnips.com/nsdoc/b2a4a221-2590-486f-a314-469a4721e1ed/?id=1183359840917
how can i download this file using ruby?
require "open-uri"
File.open("my.mp3","wb") do |file|
file << open("http://...")
end
however, this only works for files that are located directly at that
location i.e. http://random.../random.mp3, not for php hosted files like
the examle I had given. Please help!