We need to contact an HTTP server (in POST method) to receive some information. This server is an oAth2 authentication server and replies with a 302 Redirect HTTP code.
This throws an exception in our route.
I tried to handle this exception with a cTry/catch but the exchange body is empty and does not contain the http response body.
I tried to had some extra Apache parameters to the url such as "httpClient.handleRedirects=true" but they're not recognized.
How can we handle HTTP redirects in route ?
Could you please post your current route setting screenshots into forum which will be helpful for us to address your issue?
Thanks for your time.