REBOL Programming/decode-url

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

DECODE-URL url 

DESCRIPTION:[edit]

Decode a URL into an object.

DECODE-URL is a function value.

ARGUMENTS[edit]

  • url -- (Type: any)

SOURCE CODE[edit]

decode-url: func [
    "Decode a URL into an object." 
    url 
    /local purl
][
    purl: context [user: pass: host: port-id: path: target: none] 
    parse-url/no-error purl url
]