Re: Redirect with POST call not possible

2022-05-10 Thread Claus Ibsen
Hi Good to know and thanks for posting the working code. I created a ticket about adding a new option https://issues.apache.org/jira/browse/CAMEL-18093 On Tue, May 10, 2022 at 4:58 PM Michael Rambichler wrote: > > Thanks!!! > With your hint, I have found the solution: httpClientConfigure > > fro

Re: Redirect with POST call not possible

2022-05-10 Thread Michael Rambichler
Thanks!!! With your hint, I have found the solution: httpClientConfigure from("direct:start") .to("rest:POST:users/{id}/basic?throwExceptionOnFailure=false&httpClientConfigurer=#customConfigurer") .log(LoggingLevel.INFO, "Received body : ${body}") .to("mock:result"); @Bin

Re: Redirect with POST call not possible

2022-05-10 Thread Claus Ibsen
Hi I guess there are 2 things 1) To make it easy in camel-http to turn on follow direct out of the box. You are welcome to create a JIRA 2) You can maybe use the http client configurer thingy on camel-http to customize the created client to set that code. On Tue, May 10, 2022 at 4:20 PM Michael

Re: Redirect with POST call not possible

2022-05-10 Thread Michael Rambichler
Hi, Yes, exactly. I debugged the http-client code already. And the solution is to define the redirect strategy: via: client.setRedirectStrategy(new LaxRedirectStrategy()); But i do not know how to access the http-client used by the camel-http Am Di., 10. Mai 2022 um 16:03 Uhr schrieb Claus Ibsen

Re: Redirect with POST call not possible

2022-05-10 Thread Claus Ibsen
Hi So are you asking for how to configure the http client to follow redirects? You use camel-http, so you need to find out how it does redirects On Tue, May 10, 2022 at 3:46 PM Michael Rambichler wrote: > > Hi Team, > > I hope someone can help us. > > We have to do a simple rest callout with PO