How would I check email using gmail atom and Lua Socket?

159 Views Asked by At

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
0

There are 0 best solutions below