I'm trying to perform one redirection using Apache Camel, but I'm not able to do this, because every time it's showing me GET method, but I have to redirect using POST method.
public void redirectFromSuccess(Exchange exchange) {
exchange.getIn().setHeader("CamelHttpMethod", "POST");
exchange.getIn().setHeader("Location","http://testURL.com/SuccessURL");
exchange.getIn().setHeader(Exchange.HTTP_RESPONSE_CODE,"301");
}