cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Content-Length

From: Nick Gimbrone <Nicholas.Gimbrone_at_Comcast.Net>
Date: Thu, 22 Aug 2002 22:27:58 -0400

>>I have discovered subsequently that it is in fact required by the protocol.
>Unfortunately, although Content-Length may be required by HTTP,
Ok, let us just nip this one right in the bud....
the HTTP protocol spec does NOT require a Content-Length header.
It is permissible to simply close the connection at the end of the body,
and it is permissible to (in 1.1) use chunk encoding (a self-defining content
that lets you dynamicly know when the last bytes have arrived).

Please...
read the spec before you make claims about what it requires and what it does
not.

Peace -njg

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Received on 2002-08-23