Ruby 获取 HTTP 服务器的信息 2015/11/27 48160 清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>> require 'uri' Net::HTTP.get(URI.parse("http://www.oschina.net")) response = Net::HTTP.get_response('www.oschina.net', '/code/list') puts response['Server'] puts response['SERVER']