Ah you need to set it on the *real* endpoint

    .enrich("http://dummyhost?throwExceptionOnFailure=false";)

As this options is only applicable there, and not possible to set
using those HTTP headers.

On Wed, Sep 11, 2013 at 4:08 PM, roger_rabbit <[email protected]> wrote:
> Claus,
>
> thanks for the tip; which sounded very like the right one until I tried
> it... and it didn't work
>
> ..
>                         // .setHeader(Exchange.HTTP_QUERY,
> constant("throwExceptionOnFailure=false"))
>                         .setHeader(Exchange.HTTP_URI,
> constant("http://www.google.fr/xv?throwExceptionOnFailure=false";))
> ...
>
> But I still receive an exception...
>
> caught: org.apache.camel.component.http.HttpOperationFailedException: HTTP
> operation failed invoking
> http://www.google.fr/xv?throwExceptionOnFailure=false with statusCode: 404
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/camel-http-keeps-throwing-exception-regardless-of-throwExceptionOnFailure-value-tp5739143p5739153.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

Reply via email to