Hi

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.
Do you mind adding a JIRA ticket to add a getter on the
HttpOperationException for the content type.



/Claus Ibsen
Apache Camel Committer
Blog: http://davsclaus.blogspot.com/



On Tue, Nov 25, 2008 at 9:30 AM, Trevv <[EMAIL PROTECTED]> wrote:
>
>
> Claus Ibsen-2 wrote:
>> The patch at http://issues.apache.org/activemq/browse/CAMEL-1083 might
>> give some points for sending a HTTP request to HTTP server that
>> returns a error code 500 so it triggers the
>> HttpOperationFailedException.
> Thank you Claus, your patch almost restores the 1.4.0 functionality
> that I need.
>
> Now I can access the error page content, as a stream of raw bytes.
> But I can't convert those raw bytes into something more meaningful
> (e.g. characters) because the Content-Type header has been discarded.
> --
> View this message in context: 
> http://www.nabble.com/HttpProducer%3A-how-to-access-the-body-of-an-error-page--tp20475651s22882p20676965.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>

Reply via email to