Hello!
On Fri, Apr 25, 2014 at 9:31 AM, develephant.net wrote:
> I am curious what the best method is to retrieve data from an external site
> from within a Lua file using OpenResty. Possibly something similar to
> ngx.location. Is this possible? If not then I assume I would use some Lua
> internals to do this?
>
Just check out those lua-resty-http libraries out there, which are
based on ngx_lua's cosocket API.
Regards,
-agentzh