-
-
Notifications
You must be signed in to change notification settings - Fork 641
http options table
starkos edited this page Apr 10, 2021
·
5 revisions
This wiki is no longer being maintained.
-
progressis a Lua callback function that receives two numeric arguments representing total and current download progress in bytes. -
headersis a Lua table with HTTP headers to be used on the request. -
userpwdis a username and optional password in the format of username:password which will be used to authenticate the request -
usernameis the username which will be used to authenticate the request -
passwordis the password which will be used to authenticate the request -
timeoutis the timeout in seconds. -
timeoutmsis the timeout in milliseconds. -
sslverifyhostVerify the host name in the SSL certificate. See CURLOPT_SSL_VERIFYHOST -
sslverifypeerVerify the SSL certificate. See CURLOPT_SSL_VERIFYPEER -
proxyurlis the URL which will be used as the proxy for the request. See CURLOPT_PROXY
local options = {
timeoutms = 2500,
sslverifypeer = 0,
username = "premake",
password = "hunter2",
}
http.post("http://null.com", "data", options)Premake 5.0 or later.