Claus Ibsen-2 wrote:
> Ah that would be nice to have the content type on the
> HttpOperationException as well?
> 
> But I guess in 99% converting to String would be fine as most servers
> return a text/plain or text/html error page.
Yes, but to convert bytes to String, you need to know the charset.

The charset that was used by the Web server to encode the error page
content might not be the same as your camel's JVM's default charset.

Do you mind adding a JIRA ticket to add a getter on the
> HttpOperationException for the content type.
As an addition to CAMEL-1083, or as a completely new issue?
-- 
View this message in context: 
http://www.nabble.com/HttpProducer%3A-how-to-access-the-body-of-an-error-page--tp20475651s22882p20678642.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to