lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi List,

I am trying to get the content of a web page. I tried  socket.http.get  but was not successful.

require('socket')   -- this is ok

socket.http.get("http://lua.org")
stdin:1: attempt to index field 'http' (a nil value)
stack traceback:
    stdin:1: in main chunk
    [C]: ?

Please tell me how to solve this. Many thanks!

Regards,

Nguyen Q Chien