http://d.hatena.ne.jp/willnet/20080626/1214487378 httpclientã¯open-uriã®æ軽ãã¨ãNet::HTTPã®æ©è½ã両ç«ããã¦ã使ãåæã®ããã©ã¤ãã©ãªã ãã¯ããã¼ãkeep-aliveããµãã¼ããã¦ããããã ããRuby 1.9æªå¯¾å¿ãRuby 1.9ã ã¨ParseDateãªãã¦ãªããã¼ã£ã¦ã¨ã©ã¼ãã§ã¦ãã¾ããâææ°çã§Ruby 1.9å¯¾å¿ POSTã®å ´åã¯post_contentã使ãã串ãUser-AgentãFromãããã¯HTTPClient.newã®å¼æ°ã§ã require 'rubygems' require 'httpclient' require 'kconv' hc = HTTPClient.new query = "ruby" html = hc.get_content("http://www.google.
{{#tags}}- {{label}}
{{/tags}}