For a dynamically generated web page: how can the server come up with the content length specified in the Content-Length header? Remember that in the response the header lines appear before the body

When a HTTP server sends the contents of a document to a client in a response body, it uses the Content-Length header line to specify the byte length of the body. For static documents, the byte length is provided by the file system. But for dynamically generated web pages, such as those generated by a CGI script, the length must be determined at runtime, on the fly.


The contents must be accumulated in a buffer so that the length may be counted and entered in the content length field of the header lines, preceding the contents appearing in the body.

Computer Science & Information Technology

You might also like to view...

When the Split Table button is clicked, a blank paragraph is inserted above the table

Indicate whether the statement is true or false

Computer Science & Information Technology

Symbols, such as less than (<), greater than (>), and equal to (=), are all examples of comparison operators.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

It is highly likely that each one of us has an electronic profile created by information resellers.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A wide area network connects its workstations through the use of a ____ design and requires routing to transfer data across the network.

A. ?bus B. ?star C. ?mesh D. ?ring

Computer Science & Information Technology