Header Options for the Server and Browser

Using different content types when printing the output of a script

text/plain
If something is wrong with the HTML code, it is possible to send the script as text/plain. Then you will see all of the HTML code displayed on the screen. This may be helpful for debugging purposes. Also, it is possible to print the content of non-HTML files by sending this content type.
text/html
This allows the script to create HTML documents 'on the fly'.
multipart/x-mixed-replace, pages 566-569 of the text
This type is used for server push. It needs to be used in an nph- script. The script sends multiple pages, each separated by a boundary string of your choosing.

Using the enctype field in a form

multipart/form-data, pages 553-556 of the text
This type is used to upload a file from the browser to the server. Use the <form> tag with the format
<form method=post enctype="multipart/form-data">

This will send the name/value pairs of the form in a different format, and will send the contents of the file. With this format, the browser is sending the data to the server in a different format, and changes the enctype field to let the server know.

Browser Pull

Server Push

Cookies, page 536-541 of the text