Hi The http client library has some options to turn on|off follow redirects. Though I am not sure what it does by default.
On Tue, Jun 17, 2014 at 6:37 PM, koritoss <[email protected]> wrote: > Thanks for the reply. > > I doubt the onException code is executed when 300~399 response code is > returned since I do not see the log message below. > > .onException(HttpOperationFailedException.class) > .process(new Processor() { > public void process(Exchange exchange) throws Exception { > LOGGER.log(Level.INFO, "HttpOperationFailedException > thrown); > } > }) > > One thing to note is that I do see the log messsage > "HttpOperationFailedException thrown" when response code 400+ is returned. > > I believe handled(true) mask the exception to the caller but it should still > catch the exception and print out that log message. > > > Is there another way to prevent this auto redirect behavior? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Disable-auto-redirect-tp5752391p5752446.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
