Lasso Soft Inc. > Home

[response_url]

Linkresponse_url
AuthorJason Huck
CategoryResponse
Version8.x
Licensehttp://opensource.org/licenses/artistic-license.php
Posted26 Oct 2005
Updated16 Jan 2006
More by this author...

Description

Returns the full URL used to call the current page, including any get args, a custom port if used, and the correct protocol (http or https).

Sample Usage

response_url;

-> http://tagSwap.net/response_url

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(
	'url',
	-namespace='response_',
	-priority='replace',
	-description='Returns the full URL used to call the current page.'
);	
	return(
		(server_port == 443 ? 'https://' | 'http://')
		+ server_name 
		+ ((: 80, 443) !>> server_port ? ':' + server_port) 
		+ response_filepath 
		+ (client_getargs->size ? '?' + client_getargs)
	);
/define_tag;

Related Tags

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