Link | request_params |
Author | Jason Huck |
Category | Client |
Version | 8.x |
License | http://opensource.org/licenses/artistic-license.php |
Posted | 01 Jun 2006 |
Updated | 01 Jun 2006 |
More by this author... |
Returns a map of items in the client request header.
request_params->find('Host'); -> 'www.omnipilot.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( 'params', -namespace='request_', -priority='replace', -description='Returns a map of the items in the request header.' ); local('in') = client_headers; #in->replace('\r\n','\r')&replace('\n','\r'); #in = #in->split('\r'); local('out' = map); iterate(#in, local('i')); local('name') = #i->split(':')->first; local('value') = #i->removeleading(#name + ':')&trim&; #out->insert(#name = #value); /iterate; return(@#out); /define_tag;
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
To use with IIS...