Mercurial > hg > Members > nobuyasu > jungle_benchmark
changeset 13:e3fe67fee803
adde hello_post.rb
author | Nobuyasu |
---|---|
date | Mon, 20 Jan 2014 17:01:44 +0900 |
parents | c69a41ffc439 |
children | 77a01d4fca04 |
files | distributed/hello_post.rb |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/distributed/hello_post.rb Mon Jan 20 17:01:44 2014 +0900 @@ -0,0 +1,9 @@ +#!/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') +res = Net::HTTP.post_form(uri, {}) +puts res