forked from premake/premake-core
-
Notifications
You must be signed in to change notification settings - Fork 0
http.post
Tom van Dijck edited this page Aug 30, 2016
·
4 revisions
Perform a HTTP POST request to the specified URL.
http.post(url, data, { options })url is the URL to POST to.
data is a string containing the data to post.
options is a table of options used for this HTTP request.
There are three return values.
resource, result_str, response_code = http.post(url, data, { options })-
resourceis the content that was retrieved or nil if it could not be retrieved. -
result_stris set to "OK" if successful or contains a description of the failure. -
result_codeis the HTTP result code of the get.
local resource, result_str, response_code = http.post("http://example.com/api.json", "somedata")Premake 5.0 or later.