Lasso Soft Inc. > Home

[Header] ... [/Header]

[Header] ... [/Header] sets the HTTP header of the response to the contents of the container tags.

The text inside the [Header] ... [/Header] tags needs to follow the rules for HTTP headers as defined by the World Wide Web Consortium <http://www.w3c.org>.

The [Header] ... [/Header] tags should be used above any other LDML tags that modify the HTTP header. These include [Redirect_URL], [Server_Push], [Cookie_Set] and [Content_Type]. Any changes made by these tags will be erased by a subsequent set of [Header] ... [/Header] tags.

There should only be one set of [Header] ... [/Header] tags in any format file.

  • Syntax
  • Parameters
[Header]
HTTP/1.0 302 Moved Temporarily
Location: http://www.example.com/
URI: http://www.example.com

[/Header]
Examples

To prompt the site visitor with an authentication dialog:

Use the [Header] ... [/Header] tags with an appropriate HTTP header to ask the Web browser to prompt the visitor for a username and password. The realm name "Example" will be shown to the visitor in the authentication dialog.

[Header]
HTTP/1.0 401
WWW-Authenticate: Basic realm="Example"
Server: Lasso Professional 5
[/Header]
Tag Link [Header] ... [/Header] Category Output
Type Container Data Source Any
Support Preferred Version 3.0
Output Type None Security None
Implementation Sets Lasso 5.0,LDML3x

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