Lasso Soft Inc. > Home

[go_HTTP]

Linkgo_HTTP
AuthorAlex Pilson
CategoryResponse
Version8.x
LicensePublic Domain
Posted26 Oct 2005
Updated16 Nov 2005
More by this author...

Description

Provides an easy means to auto convert a request to a non SSL realm.

Sample Usage

/* 
when coming from an HTTPS area where SSL is not required, call this tag before the actual display
*/



go_HTTP('mydomain.com');

Source Code

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;

Comments

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft