This breaks a URI given as a string into its different elements such as
protocol/scheme, host, port, file name, query.
This information can be used, for example, when constructing URIs
relative to a base URI.
The return value is an S3-style object of class URI.
This function uses libxml routines to perform the parsing.
Usage
parseURI(uri)
Arguments
uri
a single string
Value
A list with 8 elements
schemethe name of the protocol being used, http, ftp as a string.
authoritya string represeting a rarely used aspect of URIs
servera string identifying the host, e.g. www.omegahat.org
usera string giving the name of the user, e.g. in FTP
"ftp://duncan@www.omegahat.org", this would yield "duncan"
patha string identifying the path of the target file
querythe CGI query part of the string, e.g.
the bit after '?' of the form name=value&name=value
fragmenta string giving the coo
portan integer identifying the port number on which the
connection is to be made