uri - URI utilities
SYNOPSIS
package require Tcl 8.2
package require uri ?1.1.1?
|
For each supported scheme a namespace of the same name as the scheme itself is provided inside of the namespace uri containing the variable url whose contents are a regular expression to recognize urls of that scheme. Additional variables may contain regular expressions for parts of urls for that scheme.
The variable uri::schemes contains a list of all supported
schemes. Currently these are ftp, file,
http, gopher, mailto, news,
wais and prospero.
uri::split and uri::join
call Split[string totitle <scheme>]
and Join[string totitle <scheme>] respectively.
Original code by Andreas Kupries.
Modularisation by Steve Ball.
EXTENDING
Extending the range of schemes supported by uri::split and
uri::join is easy because both commands do not handle the
request by themselves but dispatch it to another command in the
uri namespace using the scheme of the url as criterion.
CREDITS
KEYWORDS
uri, url, fetching information, www, http, ftp, mailto, gopher, wais, prospero, file