LassoScript Utility
Basics Browse Detail

[Content_Header]

Tag Link [Content_Header] Category Output
Type Substitution Source Available Yes
Support Preferred Version 8.5
Change New Data Source Any
Output Type String Security None
Implementation Sets Lasso 8.5

Description

[Content_Header] returns a reference to the current header that is being assembled by Lasso for return to the client. The header must be a valid HTTP header separated by \r\n pairs. Lasso does not enforce proper formatting of the header so if modifications are made care should be taken to adhere to the proper HTTP standards.

Called simply the [Content_Header] tag returns the current header. If called with a parameter the header is replaced with that new value [Content_Header: 'new value']. A new value can also be assigned to or appended to the content headers.

Syntax

[Content_Header]

[Content_Header: 'new headers']

[Content_Header += 'additional header\r\n']

Parameters

Optional Parameters
HTTP Header String or byte stream which defines the new HTTP header for the page.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.