LassoScript Utility
Basics Browse Detail


Tag Link [Content_Type] Category Output
Type Substitution Source Available No
Support Preferred Version 2.0
Change Unchanged Data Source Any
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x, Lasso 2.5, Lasso 2.0, Lasso 1.x


[Content_Type] sets the MIME type of the current HTTP response. Accepts a single parameter, the MIME type which should be sent to the client Web browser.

The MIME type should be a valid type as defined by the World Wide Web Consortium <>

Common examples include: 'text/html' for standard HTML documents, 'text/xml' for XML documents, 'image/gif' for GIF images, and 'image/jpeg' for JPEG images.

Since this tag modifies the HTTP response header it should be used after any [Header] ... [/Header] tags contained in a format file.


[Content_Type: 'MIME Type']


Required Parameters
MIME Type MIME Type to be sent to browser.


To set the MIME type of the current page to XML:

Use the [Content_Type] tag with a 'text/xml' parameter.

[Content_Type: 'text/xml']