Lasso Soft Inc. > Home

[Valid_URL]

[Valid_URL] checks the format of a URL parameter. If the parameter appears to be a valid URL then True is returned.

This tag does not check whether the specified server is available. Use [Include_URL] to perform a live check of a remote server.

The optional -Protocol parameter allows a protocol to be specified such as HTTP, HTTPS, MAILTO, FTP, etc. Only URLs which reference that protocol will be returned as valid.

  • Syntax
  • Parameters
[Valid_URL: 'URL']

[Valid_URL: 'URL', -Protocol='Protocol']
Required Parameters
URL The URL to be checked
Optional Parameters
-Protocol Optional protocol to check for. If specified only URLs with this protocol will be returned as valid.
Examples

To check whether a URL is valid:

Use the [Valid_URL] tag. The following example checks whether a URL referencing the Web server at www.example.com is valid.

[Valid_URL: 'http://www.example.com/Lasso/Admin.LassoApp']
Result:
True
Tag Link [Valid_URL] Category Utility
Type Substitution Data Source Any
Support Preferred Version 3.0
Output Type Boolean 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 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft