The following example illustrated what components a URI may consist of (the example is derived from [http://tools.ietf.org/html/rfc3986 RFC 3986]):
<syntaxhighlightpre>
foo://example.com:8042/over/there?name=ferret
\_/ \_________/ \__/\_________/ \_________/
| | | | |
scheme hostname port path query
</syntaxhighlightpre>
=General Functions=