俺å¾ã¡ã¢ããã3åãããåããã¨èª¿ã¹ããã§ããå æ¸ã¡ã¢æ®ãã¦ããã Net::HTTP ã«set_debug_outputã£ã¦ã¡ã½ããããã£ã¦ã³ã¤ãã«åºåå ã渡ãã°ãããæ®å¿µãªãããã®set_debug_outputã¯ããã¥ã¡ã³ãã«ã¯è¼ã£ã¦ãªãã®ã§net/httpã®ã½ã¼ã¹è¦ã¦ãã require 'net/http' Net::HTTP.version_1_2 http = Net::HTTP.new("d.hatena.ne.jp", 80) http.set_debug_output $stderr http.start{|http| req = Net::HTTP::Get.new('/yuroyoro') res = http.request(req) print res.body } irbã§ãã㨠irb(main):001:0> require 'net/http' => t
{{#tags}}- {{label}}
{{/tags}}