Link | go_HTTP |
Author | Alex Pilson |
Category | Response |
Version | 8.x |
License | Public Domain |
Posted | 26 Oct 2005 |
Updated | 16 Nov 2005 |
More by this author... |
Provides an easy means to auto convert a request to a non SSL realm.
/* when coming from an HTTPS area where SSL is not required, call this tag before the actual display */ go_HTTP('mydomain.com');
Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
define_tag:'HTTP', -nameSpace='go_', -priority = 'replace', -required = 'domain', -Description='Provides an easy means to auto convert a request to a non SSL realm.'; local('domain'); local('pre') = 'http://'; local('response'); !(#domain->endsWith('/')) ? #domain += '/'; !(#domain->beginsWith('http://')) ? #repsonse += #pre + #domain + response_filePath | #repsonse += #domain + response_filePath; if(server_port == 443); redirect_url(#response); /if; /define_tag;
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft