It does help that you designed this way... two separate streams add unnecessary complexity!
Cheers, -Adrian jclouds On Fri, Aug 7, 2009 at 7:05 AM, Oleg Kalnichevski <[email protected]> wrote: > On Wed, Aug 05, 2009 at 03:40:15PM +0200, > [email protected] wrote: > > Using plain java.net I can use this sequence to obtain an error message > > submitted by the HTTP server: > > HttpURLConnection conn = ...; > > conn.connect(); > > InputStream inputStream = conn.getErrorStream(); > > > > How can I get an InputStream representing the error stream when I'm using > > HttpComponents? > > > > > > HttpCore does not support the concept of an error stream. One should use > HttpEntity#getContent to obtain the response data stream regardless of the > HTTP > response status. > > Hope this helps > > Oleg > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
