Mercurial > hg > Members > nobuyasu > jungle_benchmark
view distributed/hello_post.rb @ 25:726b2deadbe3
calc_sd.rb
author | Nobuyasu |
---|---|
date | Fri, 31 Jan 2014 04:51:45 +0900 |
parents | 9ecbc7400fbb |
children |
line wrap: on
line source
#!/usr/bin/ruby require 'net/http' require 'uri' require 'benchmark' url="http://mass48.cs.ie.u-ryukyu.ac.jp:8080/createBoard?bname=hello%20world&author=oshiro&key=0&msg=hogehoge" if ARGV.size() > 0 then url = ARGV[0] + "/createBoard?bname=hello%20world&author=oshiro&key=0&msg=hogehoge" end puts url uri = URI.parse(url) res = Net::HTTP.post_form(uri, {}) puts res