How do web browsers display progress bars if they don't know the file size?

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2010-05-07T03:12:22Z Indexed on 2010/05/07 5:08 UTC
Read the original article Hit count: 239

Filed under:
|

I'm writing a download manager, and I've noticed that all the web pages I've encountered don't seem to set the ContentLength header, whereas other media types (images) do. However, when I load a page (in Firefox), I get a progress as it loads. What's that based off if not file size?

© Stack Overflow or respective owner

How do web browsers display progress bars if they don't know the file size?

Posted by Mark on Super User See other posts from Super User or by Mark
Published on 2010-05-07T03:12:22Z Indexed on 2010/05/07 3:18 UTC
Read the original article Hit count: 240

Filed under:
|

I'm writing a download manager, and I've noticed that all the web pages I've encountered don't seem to set the ContentLength header, whereas other media types (images) do. However, when I load a page (in Firefox), I get a progress as it loads. What's that based off if not file size?

© Super User or respective owner

Related posts about http

Related posts about browser