Connection Pool Event Listeners

2011-04-04 Thread Neil Chaudhuri
I am using ThreadSafeClientConnManager to manage a pool of connections to serve multiple threads, but some of the requests and responses have cookies set. Obviously, I would like to return the connections to the pool in the same condition I retrieved them, which means removing those cookies befo

Re: Bytes Missing from HTTP Response

2011-04-04 Thread Chad La Joie
Okay, I'll look in to the server side of things. As an aside, converting the stream to characters is generally a really bad idea when it comes to XML parsing. Normally you want just give the parser the stream and let it figure out all the details. Thanks for the help. On 4/4/11 8:22 AM, Oleg Ka

Re: Bytes Missing from HTTP Response

2011-04-04 Thread Oleg Kalnichevski
On Mon, 2011-04-04 at 08:16 -0400, Chad La Joie wrote: > Then I guess I misunderstood what you were saying before. Are you > suggesting then that the server is transcoding the file when it serves > it up? And that the missing bytes actually go missing before HttpClient > gets the response? That

Re: Bytes Missing from HTTP Response

2011-04-04 Thread Chad La Joie
Then I guess I misunderstood what you were saying before. Are you suggesting then that the server is transcoding the file when it serves it up? And that the missing bytes actually go missing before HttpClient gets the response? On 4/4/11 8:08 AM, Oleg Kalnichevski wrote: > On Mon, 2011-04-04 at

Re: Bytes Missing from HTTP Response

2011-04-04 Thread Oleg Kalnichevski
On Mon, 2011-04-04 at 07:34 -0400, Chad La Joie wrote: > Yeah, unfortunately that didn't work. > > Is there any way to get the old v3 behavior that gives you access to the > raw bytes of the entity before any sort of character decoding is done? > > I strongly suspect that very few web servers out

Re: Bytes Missing from HTTP Response

2011-04-04 Thread Chad La Joie
Yeah, unfortunately that didn't work. Is there any way to get the old v3 behavior that gives you access to the raw bytes of the entity before any sort of character decoding is done? I strongly suspect that very few web servers out there are properly configured to return the correct character enco