Here's a way to get a binary file and save it locally using net/http, built from the example on this site:
http://www.rubynoob.com/articles/2006/08/21/how-to-download-files-with-a-ruby-script ======================================== # Save the google logo.gif to the current dir. require 'net/http' Net::HTTP.start("www.google.com") do |http| resp = http.get("/intl/en/images/logo.gif") open("google.gif", "wb") { |file| file.write(resp.body) } end puts "Done!" ========================================== This would of course need changes if you have to deal with authentication or HTTPS. :) --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=4399&messageID=12417#12417 _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
