File cookie.lua

Do not use this directly. browser uses this module for his internal purpose. Only one function is available to the end user. Incorporating jbobowski Gmail fix posted 26 April 2006.

Functions

parse_url (url, default) Parses a url and returns a table with all its parts according to RFC 2396 The following grammar describes the names given to the URL parts ::= :///;?# ::= @: ::= [:] :: = {/} Input url: uniform resource locator of request default: table with default values for each field Returns table with the following fields, where RFC naming conventions have been preserved: scheme, authority, userinfo, user, password, host, port, path, params, query, fragment Obs: the leading '/' in {/} is considered part of


Functions

parse_url (url, default)
Parses a url and returns a table with all its parts according to RFC 2396 The following grammar describes the names given to the URL parts ::= :///;?# ::= @: ::= [:] :: = {/} Input url: uniform resource locator of request default: table with default values for each field Returns table with the following fields, where RFC naming conventions have been preserved: scheme, authority, userinfo, user, password, host, port, path, params, query, fragment Obs: the leading '/' in {/} is considered part of

Parameters

  • url:
  • default:

Valid XHTML 1.0!