Lines Matching +refs:ftp +refs:Get
27 # ftp://. In these cases, the opened file object is extended by OpenURI::Meta.
46 # It is possible to open an http, https or ftp URL as though it were a file:
250 (/\A(?:http|ftp)\z/i =~ uri1.scheme && /\A(?:http|ftp)\z/i =~ uri2.scheme)
314 req = Net::HTTP::Get.new(request_uri, header)
576 # `scheme' is replaced by `http', `https' or `ftp'.
673 # <tt>:ftp_active_mode => true</tt> is used to make ftp active mode.
685 # Using +true+ also means that redirections between http and ftp are
721 require 'net/ftp'
746 ftp = Net::FTP.new
747 ftp.connect(self.hostname, self.port)
748 ftp.passive = true if !options[:ftp_active_mode]
753 ftp.login(user, passwd)
755 ftp.voidcmd("CWD #{cwd}")
759 ftp.voidcmd("TYPE #{typecode.upcase}")
762 options[:content_length_proc].call(ftp.size(filename))
764 ftp.retrbinary("RETR #{filename}", 4096) { |str|
768 ftp.close