Mercurial > hg > Members > nobuyasu > jungle_benchmark
view distributed/hello_post.rb @ 15:6e7a01afaaf8
Modified prrogram
author | Nobuyasu |
---|---|
date | Thu, 23 Jan 2014 05:52:31 +0900 |
parents | e3fe67fee803 |
children | 704bcc773b96 |
line wrap: on
line source
#!/usr/bin/ruby require 'net/http' require 'uri' require 'benchmark' #uri = URI.parse('http://mass12.cs.ie.u-ryukyu.ac.jp:8080/createBoard?bname=hello%20world&author=oshiro&key=0&msg=hogehoge') uri = URI.parse('http://mass48.cs.ie.u-ryukyu.ac.jp:8080/createBoard?bname=hello%20world&author=oshiro&key=0&msg=hogehoge') res = Net::HTTP.post_form(uri, {}) puts res