Absolutely lost with URI/Net/HTTP

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?

or if that isn’t possible, to tell firefox to open that url?

thanks!

On 7/2/07, Guest [email protected] wrote:

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://www.es…”)
end

On 7/2/07, Gregory B. [email protected] wrote:

how can i download this file using ruby?

require “open-uri”

File.open(“my.mp3”,“wb”) do |file|
file << open(“http://www.es…”)
end

whoops, that should be open(“http://…”).read