On Mon, 2007-06-11 at 15:06 +0800, Feng Jiang wrote: > Hi all, > > I need httpclient to fetching some large files, such as images, videos. In > some cases, the server will close the connection before the fetching process > is done, so that I have only fetched a part of the whole file. In this case, > I hope httpclient be able to tell me whether it fetched the whole file, or > interrupted during the fetching process. > > Can httpclient do it? > > Thanks alot, > > Feng
Hi Feng HttpClient will throw an IOException (most likely 'Connection reset by peer' or some such) if the target server shuts down the connection prematurely. Hope this helps Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
