LassoScript Utility
Basics Browse Detail

[Server_Port]

Tag Link [Server_Port] Category Utility
Type Substitution Source Available No
Support Preferred Version 3.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

Description

[Server_Port] returns the port from which the current request is being served. Usually 80 for normal HTTP requests or 443 for secure HTTPS requests.

Note: The port is configured in the Web server preferences. See the documentation for your Web server application for more information.

Syntax

[Server_Port]

Parameters

No Parameters Required.

Examples

To determine whether the current format file is being served securely:

Check the value for [Server_Port]. Usually, if it is 443 then the page is being served securely.

[If: (Server_Port) == 443]
  <p>The page is being served securely.
[Else]
  <p>The page is not being served securely.
[/If]

<p>The page is being served securely.