2007-04-12
Ruby Http Client
ruby 代码
- require 'net/http'
- Net::HTTP.start('open2ye.javaeye.com', 80) do |http|
- response = http.get('/')
- #Do something with the response.
- puts "Code: #{response.code}"
- puts "Message: #{response.message}"
- puts "Body:\n #{response.body}"
- end
发表评论
- 浏览: 9969 次
- 性别:

- 来自: 温州

- 详细资料
搜索本博客
我的相册
mary.JPG
共 27 张
共 27 张
最近加入圈子
链接
最新评论
-
Ruby Http Client
really?
-- by jerry -
ruby 又一BUG 折磨了我很 ...
放这里记一下sudo apt-get install openssh-clien ...
-- by open2ye -
rails 的测试的 bug 当你 ...
还有一个可能造成这个问题的原因是rails test的transactional ...
-- by iamawalrus -
rails 的测试的 bug 当你 ...
gigix 写道 干嘛不放在before_save呢? 例如Part 在 be ...
-- by open2ye -
rails 的测试的 bug 当你 ...
iamawalrus 写道 检查test环境的db以及对应的table是否和de ...
-- by open2ye






评论排行榜