[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Haproxy-LUA-RestAPI call
- From: Javier Guerra Giraldez <javier@...>
- Date: Fri, 28 Feb 2020 08:47:50 -0500
On Fri, 28 Feb 2020 at 03:34, murali <firstname.lastname@example.org> wrote:
> Hi Team,
> I am new to LUA programming language, I am trying to call external service https call from LUA and got success, but the same thing is not working when integrating with HAProxy.Could you please help us providing sample Rest POST request calls from LUA Script using HAProxy compatible SOCKET functions.
as you've noted, the environment in which you run your code is very
important. Remember that Lua is used by many programs as an
"extension language". That means that each program (HAProxy in your
case) makes its functionality available to scripts written in Lua.
since you already have some working code in some other environment, I
guess you do have some familiarity with the language itself, so your
issues are probably more about HAProxy extensions.
I've never used Lua with HAProxy, but from a quick search, I see the
main documentation about using Lua with HAProxy is here:
https://www.arpalert.org/haproxy-lua.html and the reference is here:
have your read those documents? Or is some specific point there that
might be confusing and we could help interpreting?