local http = require("socket.http")
local io = require("io")
local ltn12 = require("ltn12")
UserID = "userID=XXXXX"
APIKey = "apiKey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
CharID = "characterID=XXXXXXX"
--Lame I know...
reqbody = UserID.."&"..APIKey.."&"..CharID
http.request {
method = "POST",
url = "http://api.eve-online.com/char/CharacterSheet.xml.aspx",
headers= { ["Content-Type"] = "application/x-www-form-urlencoded",
["Content-Length"] = string.len(reqbody),
},
source = ltn12.source.string(reqbody),
sink = ltn12.sink.file(io.stdout)
}