_contentType

Content Type HTTP Header

Type: input

Scope: global

Description: Assigning the _contentType variable to a string re-specifies the "Content-type:" HTTP header returned to the browser. The default is _contentType='text/html', which produces the HTTP header "Content-type: text/html".

Usage: {% _contentType = <string> }

Example:
{% _contentType = 'text/plain' }

Result:
The browser will display the plain text. The browser it will treat the returned page as a plain text document as opposed to an HTML document.

Example:
{% _contentType = 'image/gif' }

Result:
The browser will display a GIF file image. The browser it will treat the returned page as an image as opposed to a text HTML document.

 

 

| Home |


July 18, 2003

System resources to generate this page:
1: READ FILE A: /home/action/public_html/_global.shtml (0s)
19: READ FILE A: /home/action/adocs/docs/variables.shtml (0s)
6: READ FILE FAILED: /home/action/public_html/docs/variables.txt (0s)
59: SQL SELECT (VAR): DBI:mysql:action_database:localhost (0s)
62: READ FILE A: /home/action/adocs/docs/inc_docHeader.html (0s)
89: READ FILE A: /home/action/adocs/docs/inc_trailer.html (0s)