,插座的創建失敗「權限被拒絕」: require("socket")
server, msg = socket.bind("*", 23)
if not server then print(msg) end
然而 ,當相同的腳本以超級用戶身份執行(使用sudo),服務器的創建工作得很好。有沒有任何理由爲什麼LuaSocket不能正常創建服務器?我可以做任何事情(無論是在Lua還是在Ub
我正嘗試使用lua腳本在支持SSL的服務器上檢索頁面。重要的是要注意,服務器有一個自簽名證書。由受信任的CA頒發的證書沒有問題。 local https = require("socket.http")
local resp = {}
local r, c, h, s = https.request{
url = "https://my-server:443/example.php"
到目前爲止,我有以下幾個部分: local socket = require "socket.http"
client,r,c,h = socket.request{url = "http://example.com/", proxy="<my proxy and port here>"}
for i,v in pairs(c) do
print(i, v)
end
這給了我類