- url = cgi:mkurlpath(path [, getlist])
- url = http.mkurlpath(path [, getlist])
SYNOPSIS
DESCRIPTION
Builds a properly formatted URL. The variable path is used as the base URL. Building a proper URL is done in steps.
- Any special characters in url are escaped to make a valid URL.
- If getlist is specified, it is taken as a table of name/value pairs. Each pair is added to the URL to form a valid http get request. Special characters are automatically percent escaped.
The return value is a fully built URL with optional get arguments.
Both forms function identical. The first form looks cleaner inside a script, the second form works without needing a live request.