from looking at the filepart code seems that this part would be creating a problem which makes the code not recoverable from the server closing the connection when authentication fails... Filepart.java for httpclient
sendData(){ create a new byte array of size 4K while thereis stuff to be read from the file send it out to the outputstream finally close the stream } I know the while loop is the one that chokes when the connection is closed as the httpclient has not yet finished writing the whole file (the release connection is also not called which might help in teh retry)and the IOException from that write is sent all the way up and since it is not an HttpRecoverableException the whole thing does not even go to the point of trying to send it out the next time with credentials.. how do you propose to change this? The only way I see is to send part of the file to the server and when the challenge comes and the connection is closed start sending the file in parts and hope it will not get challenged.. otherwise we might be stuck in the sending (a max of three times specified in the MethodRetryHandler) .. any input would be helpful.. Sid __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]