`
hq2999
  • 浏览: 3469 次
  • 性别: Icon_minigender_1
  • 来自: 宁波
文章分类
社区版块
存档分类
最新评论

ruby 使用 httpclient

阅读更多

#get方式访问,并返回Response内容

require 'httpclient'
client = HTTPClient.new

 client.get_content('http://www.baidu.com') do |chunk|
   puts chunk
 end

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics