I have been working on a third party API integration for a system I am working on.
There I am invoking a login call to the third party via Postman for which I get a 502 response. However, if I invoke the same using the CURL request generated by Postman, it gives me the required response.
Why two different types of requests behave in different ways?
In addition to this, I have the implementation done using Spring for the same. That one too returns the 502 response.
What could be the reason for this? Any help to get over this?
EDIT
I checked with RestClient too. It also returns 502 and the CURL request generated by it returns successfully.