lua-users home
lua-l archive

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

2011/2/22 Gilles Ganault <>:
> I guess using the HTTP connection would be easier than Telnet. I've
> been googling for half an hour but haven't found an example that shows
> how to handle cookies. Does someone know if LuaSocket supports them,
> or is there an add-on that I could use with LuaSocket?

Cookies are just HTTP headers. You can use the LuaSocket http module
to do the requests, it gives you direct access to outgoing and
incoming headers. Parsing the cookie actual content is then just a few
string.match calls away.