Size of a remote URL

Dave Brueck dave at pythonapocrypha.com
Mon Aug 30 14:10:08 EDT 2004


Justin wrote:
> How does Internet Explorer and other browsers do it?  I have tried
> doing a Save As on multiple files that I know do not return a
> content-length header and yet it still knows the size and creates a
> progress bar?

How about posting a URL? I'd be happy to try it out for you.

Also note that IE is notorious for "lying" to the user about progress - on page 
loads for example, their progress bar often moves even after your net connection 
has gone down. Not sure if they're doing that on the file download progress bar, 
but it's something to be aware of.




More information about the Python-list mailing list