Five Stars

How to get rid of the HTTP 302 "redirect" code in cHTTP ?

Hi

 

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 ?

 

Thank you

Loko

1 REPLY
Moderator

Re: How to get rid of the HTTP 302 "redirect" code in cHTTP ?

Hi,

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.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.