On Fri, Jul 11, 2008, Jeff Johnson wrote:

> [...]
> BTW, while I have yr attention, is there any way to force
> Content-Length: to be returned from a server? Stat(2) is currently
> returning a very "sparse" 0xffffffff, which is accurate even if
> arcanely obscure ...
> [...]

Hmmm... no, you cannot _force_ a server to provide a Content-Length,
although usually a good webserver (like Apache ;-) always provides it if
the length is known to it beforehand (no dynamic content generation).
If one could force a webserver into providing Content-Length this would
mean the server would have to first cache the _whole_ data stream before
sending it out which in turn would mean that streaming data out becomes
rather resource intensive. But if the server provides Content-Length
I would use it, of course. You just cannot depend on this...

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org

Reply via email to