I'm trying to get Redis to allow EVAL (http://redis.io/commands/EVAL) to make HTTP requests.
Two modules: LuaCURL and Luasocket give this ability. The Redis source code has a directory with additional modules (such as cjson) http://download.redis.io/redis-stable/deps/lua/src/, I tried adding luacurl.c but I recieved error after error. I have managed to compile it enabling os.execute - by editing scripting.c - which allows me to run the curl command but that is a bad solution.
How do I compile HTTP requests in Redis's Lua?
Presumably the easiest way to do this would to be have a standalone luasocket.so file, but I'm not sure how to do that.