bug 945313: Check for content length when downloading files and retry if not the same. r=aki