Difference between revisions of "Http.post"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:LuaCoreFunctions)
(Type-templatify, link to handles documentation in API page, deduplicate description)
Line 2: Line 2:
 
{{Function
 
{{Function
 
|name=http.post
 
|name=http.post
|args=[[string]] url, [[string]] post
+
|args={{type|string}} url, {{type|string}} postData
 
|api=HTTP
 
|api=HTTP
|returns=The response of the server or nil on failure.
+
|returns={{type|table}} a [[HTTP (API)#Handles|handle]] on success, or [[nil]] on failure
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=Return the response of the server or nil on failure.
+
|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]]

Revision as of 23:15, 5 May 2013


Grid Redstone.png  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)
Returns table a handle on success, or nil on failure
Part of ComputerCraft
API HTTP