Reputation: 219
I've had this working before, but I think whatever it is doing for IPV6 support now is breaking it. I'm not sure though.
require "socket"
require "socket.http"
url = "https://username:[email protected]/gmail/feed/atom"
print socket.http.request url
Results in
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
Upvotes: 0
Views: 142