0

我以前有过这个工作,但我认为现在为 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
4

0 回答 0