view distributed/hello_post.rb @ 26:cfae346a232e default tip

Fix millsec to sec calc_sd.rb
author Nobuyasu
date Fri, 31 Jan 2014 04:58:34 +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