[cse491] content-length question

C. Titus Brown ctb at msu.edu
Mon Oct 12 14:41:47 PDT 2009


On Mon, Oct 12, 2009 at 05:37:26PM -0400, Tim Miller wrote:
> What exactly does the Content-Length header specify?  Is it the number
> of characters for the whole request or the number of characters for
> the POST content (after the first \r\n\r\n), and is it actually
> characters or some other unit of measurement?

Hi Tim,

these are things that you should confirm for yourself, but:

it's the number of characters for the POST content (hence, 0 for a GET);
and it's in 'bytes', or characters.

cheers,
--titus
-- 
C. Titus Brown, ctb at msu.edu



More information about the cse491-fall-2009 mailing list