API ares Not reachable through Haproxy


i am redirecting traffic 80 to 443 . when call a api through loadbalancer with http is not reachable. through direct https it working fine because there is no redirect. i am using post method to fetch api.

do i need to add any parameter in haproxy.cfg

thanks in advance


It depends how your API client behaves. An API client is not a browser. Check your logs, see if the client follows the redirect and if it still is the same request (or whether it downgraded a POST to a GET request).

Haproxy not preserving data http data while redirection