Difference between revisions of "Http.post"
From ComputerCraft Wiki
m (Moved to CAT:LuaCoreFunctions) |
|||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=http.post | |name=http.post | ||
− | |args= | + | |args={{type|string}} url, {{type|string}} postData [, {{type|table}} headers] |
|api=HTTP | |api=HTTP | ||
− | |returns= | + | |returns={{type|table}} a [[HTTP (API)#Handles|handle]] on success, or [[nil]] on failure |
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc= | + | |desc=Sends a HTTP POST request to a website, synchronously. Returns when the request completes, successfully or not. |
}} | }} | ||
[[Category:Lua_Core_Functions]] | [[Category:Lua_Core_Functions]] |
Latest revision as of 19:54, 20 April 2014
Function http.post | |
Sends a HTTP POST request to a website, synchronously. Returns when the request completes, successfully or not. | |
Syntax | http.post(string url, string postData [, table headers]) |
Returns | table a handle on success, or nil on failure |
Part of | ComputerCraft |
API | HTTP |