Difference between revisions of "Ns adp mimetype"
Jump to navigation
Jump to search
(imported from WiKit id 866) |
|||
Line 13: | Line 13: | ||
'''DESCRIPTION''' | '''DESCRIPTION''' | ||
− | : This command will either get or set the mime type returned to the client when the parsing of the page is complete. | + | : This command will either get or set the mime type returned to the client when the parsing of the page is complete. If called with no arguments, the current mime type will be returned. If called with one argument, the mime type will be set to the given mime type. Updating the mimetype will invoke code to adjust output encoding if necessary. |
+ | |||
+ | '''NOTES''' | ||
+ | |||
+ | : This command should not be called outside an ADP page in AOLserver versions prior to 4.5. | ||
'''EXAMPLES''' | '''EXAMPLES''' |
Latest revision as of 22:39, 13 June 2010
Man page: http://aolserver.com/docs/tcl/ns_adp_mimetype.html
NAME
- ns_adp_mimetype - Get or set the mime type for the current ADP page
SYNOPSIS
- ns_adp_mimetype ?mimetype?
DESCRIPTION
- This command will either get or set the mime type returned to the client when the parsing of the page is complete. If called with no arguments, the current mime type will be returned. If called with one argument, the mime type will be set to the given mime type. Updating the mimetype will invoke code to adjust output encoding if necessary.
NOTES
- This command should not be called outside an ADP page in AOLserver versions prior to 4.5.
EXAMPLES
ns_adp_mimetype ns_adp_mimetype "text/plain"
SEE ALSO
- ns_adp_mime (duplicate command)