Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My software is attempting to download a file from an apache server.

I noticed that the server is not sending the file size to the client to calculate the total time reamaining.

Why is the server not sending the file size to the client, as this is resulting in "unknown time remaining"?

share|improve this question

closed as not a real question by Sven, John Gardeniers, mailq, EEAA, MDMarra Nov 15 '11 at 19:38

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

There is a header called Content-Length that your client software uses to determine the time remaining, but looking at the Content-Length header, subtracting the amount already downloaded, and then dividing the remaining amount by the current download speed and converting that into time.

If the server is not sending the Content-Length header, there is nothing you can do about it unless you have control over the server.

My guess is that the file is not being served by apache directly, but via something like PHP or CGI, and whoever wrote the script has forgotten (or not known about) adding that header to the output.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.