HTTP通信の実行プログラム
require "net/http" require "uri" uri = URI.parse("http://on-your-mark-i.blogspot.jp/index.html") Net::HTTP.start(uri.host, uri.port){|http| body = "param1=1¶m2=param" #送信 response = http.post(uri.path, body) }
require "net/http" require "uri" uri = URI.parse("http://on-your-mark-i.blogspot.jp/index.html") Net::HTTP.start(uri.host, uri.port){|http| body = "param1=1¶m2=param" #送信 response = http.post(uri.path, body) }
On Your Mark
0 件のコメント:
コメントを投稿