if the response has the content-length header, you can do this ( just count the bytes read from content-stream), if it's chunk, you cannot
hth On Fri, Jun 1, 2012 at 1:12 PM, David Newcomb <[email protected]>wrote: > I'm thinking of using the new HttpClient to replace my existing http > connection and download code. However I need to be sure your code will do > what I want. > > I currently have a progress bar that tracks completion of the download in > percent. > Does HttpClient support this? i.e. I get callbacks of how far through the > download I can currently, or do I need to poll an object to achieve this. > > Can anyone tell be if this is possible and suggest where in the > documentation I should start looking? > > Many thanks, > David > > -- > Managing Director > BigSoft Limited > Reading, UK. > +44 (0) 7866 262 398 > http://www.bigsoft.co.uk/ > Registered in Cardiff, Wales 3960621 >
