Mercurial > hg > Members > nobuyasu > Lua
view http/bullet.lua @ 4:06f22f0d9cab
add some lua files
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 28 Sep 2013 05:47:24 +0900 |
parents | 30b09b383f4e |
children |
line wrap: on
line source
local io = require("io") local http = require("socket.http") local ltn12 = require("ltn12") local bulletURL = "http://bldsv12.cr.ie.u-ryukyu.ac.jp:8080/createBoard?bname=hello%20world&author=oshiro&key=0&msg=hogehoge" --local bulletURL = "http://mass00.cs.ie.u-ryukyu.ac.jp:8080/createBoard?bname=hello%20world&author=oshiro&key=0&msg=hogehoge" b, c, h = http.request { url = bulletURL, method = "POST", sink = ltn12.sink.file(io.stdout) }