Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 SvW, 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.

add comment

1 Answer

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
add comment

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