Page 1 of 1

LuaSocket Help

Posted: Sat Jul 20, 2013 10:09 am
by Eversome
This isn't exactly related to LOVE, but it pertains to the LuaSocket API packaged with it.
Hello. I am trying to convert a python code to Lua code, but the only problem I have is translating Python's Requests API to Lua's LuaSocket API. The Requests API seems to return a nice little table when using requests.get("http://www.website.com") that is structured
{
"cookies"=<insert cookies here>,
"content"=<insert website content here>,
etc.
}
Is there any way to get this nice little table (or something similar to it) with LuaSocket?