CGI's answer


The CGI answer is an HTML document or an URL of a document.
There are 2 parts in the answer :
The http header (which describes the data type),
An empty line indicating the end of the header
The document content


The http heading

Content-length : length of data to transmit
Content-type : data type
Expires : indicate when the document becomes disable.
Pragma : if the value in no-cache, the navigator doesn’t put the document in the memory
Location : redirection
Status : answer code

All the field needn’t to be specified in the header, only content-type is required


Content

<HTML>
<HEAD>
<TITLE> title <TITLE>
</HEAD>
<BODY>

</BODY>
</HTML>

In this example, The Content is a Web page but it could be an other document.