|
On Fri, 28 Feb 2020 at 03:34, murali <mohan.reddy8@gmail.com> 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.
Hi!
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:
https://www.arpalert.org/src/haproxy-lua-api/2.0dev/index.html
have your read those documents? Or is some specific point there that
might be confusing and we could help interpreting?
--
Javier