Lasso Soft Inc. > Home

[ SERVER_PORT ]

Method

[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
Examples
  • Beginner

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.

Code

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

Result

The page is not being served securely.

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