From: bdimych@... Date: 2014-02-18T10:59:48+00:00 Subject: [ruby-core:60824] [ruby-trunk - Feature #9527] [Open] make Net::HTTP.get_print not only to $stdout but to an IO as a parameter Issue #9527 has been reported by Dmitry Bolshakov. ---------------------------------------- Feature #9527: make Net::HTTP.get_print not only to $stdout but to an IO as a parameter https://bugs.ruby-lang.org/issues/9527 * Author: Dmitry Bolshakov * Status: Open * Priority: Normal * Assignee: * Category: * Target version: ---------------------------------------- e.g. url = 'http://server/path/large-file.zip' fh = File.new(File.basename(url), 'wb') Net::HTTP.get_print(URI(url), fh) fh.close imho looks good -- http://bugs.ruby-lang.org/