清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
require 'net/http' web_proxy = Net::HTTP::Proxy('your.proxy.hostname.or.ip', 8080) url = URI.parse('http://www.rubyinside.com/test.txt') web_proxy.start(url.host, url.port) do |http| req = Net::HTTP::Get.new(url.path) puts http.request(req).body end