Lasso Soft Inc. > Home

[ content_type ]


[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.

  • Syntax
Content_Type('MIME Type')
  • Beginner

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

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



Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home



©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft