If you're going to stick with your existing HTTP example, the server knows how much data there is to ...
www.coderanch.com