open-uriでBasic認証
require 'rubygems' require 'open-uri' file = open(”http://hogehoge.com/text.txt" , :http_basic_authentication=>[user,pass]) 3.times{ file.gets }
こんなん
require 'rubygems' require 'open-uri' file = open(”http://hogehoge.com/text.txt" , :http_basic_authentication=>[user,pass]) 3.times{ file.gets }
こんなん