Rezaei, Mohammad A. wrote:
Both authentication and closed connections should occur long before we read the input stream to send the request body. So why would you want to reset the stream?
Thanks Moh
Well, no.
Authentication failures are only reported by an HTTP status code AFTER the whole request was sent (let aside the 100-continue stuff for now). So the InputStream will be completely exhausted by that time.
Connections closed by the server and still residing in the connection pool can be spotted before we touch the input stream, but in theory there is a small chance that we will actually have read from the stream when we get the exception.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]