The [web_request->pathInfo] method returns the path that a URL eventually get routed to. This means if a URL gets translated to a different path using a re-write rule, [web_request->pathInfo] will return the re-routed path, not the path in the original URL.
web_request->pathinfo
The code below will output the path which was called to get the current script to load. For this example, assume the following URL was requested: http://www.example.com/test.lasso?id=4&type=1
Code
web_request->pathinfo
Result
/test.lasso
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments