On 3/24/01 12:30 AM, andu wrote:
>>> From: LiangTyan Fui <[EMAIL PROTECTED]>
>>> not many http server returns the "Content-Length" header
>> ....
>>> One wonders why bother writing standards...
>>
>> The standard specifies actually two methods:
>
> You're right...
I think I've figured this out after endless testing from various servers.
However, I was shocked getting result from apache that has no headers at all
-- just bare html (from my newly installed Linux).
Am I missing something?
Regards,
LiangTyan Fui
>> Either you specify the
>> content length, or for streamed contents you simply write your stuff out
>> until you are finished and close the connection. Most CGIs use that,
>> because it is easier to implement... you don't have to bother about
>> counting the number of bytes you'll want to send before you send the first
>> byte.
>>
>> The content can be chunked, too, but that is really an exception and
>> you'll hardly have to deal with it as long as you don't have really large
>> data blobs.
>>
>> Regards
>> Rüdiger
>
>
> Regards, Andu
> _______________________
> [EMAIL PROTECTED]
>
> Archives: http://www.mail-archive.com/[email protected]/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>
>
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.