I am new to haproxy and I wanted to know the best way to encode the URL in haproxy.
http-request redirect code 302 location https://testservice.com/login?service=abc&redirect_uri=https://login.serivce.com?next_url=%[hdr(host)]%[capture.req.uri,regsub(&,%26,g)] unless cookie
In the above statement, I want to encode anything that comes after redirect_url,
Can someone suggest me, please?