|
Yes, I have gone through these documents and required help at Socket class send and receive functions with POST and GET request sending to third party service.
Here I will provide my request as string please help us providing syntax, how to send in Socket's send method and receive the response.
request: https://rest-uat-corretto.evergent.com:443/evl/evIDLookUp?email=evtest@yopmail.comThanks & Regards
B.MuraliMohanReddyOn Fri, Feb 28, 2020 at 7:18 PM Javier Guerra Giraldez <javier@guerrag.com> wrote: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
--