我之前已经开始工作,但我认为无论它现在为IPV6支持做了什么都打破了它。我不确定。
require "socket"
require "socket.http"
url = "https://username:password@gmail.google.com/gmail/feed/atom"
print socket.http.request url
结果
moon: C:\Program Files (x86)\Lua\5.1\lua\socket\http.lua:116: bad argument #2 to 'connect' (number expected, got string)
stack traceback:
[C]: in function 'request'
test.moon:6: (4) in main chunk