Internet Direct (Indy) Version 9.0.1 Beta
TIdURI.ParseURI
Parses a URI into it's component portions.

class procedure ParseURI(AURI: string; var VProtocol: string; var VHost: string; var VPath: string; var VDocument: string; var VPort: string; var VBookmark: string; var VUserName: string; var VPassword: string); overload;
class procedure ParseURI(AURI: string; var VProtocol: string; var VHost: string; var VPath: string; var VDocument: string; var VPort: string; var VBookmark: string); overload;
Parameters
AURI: string
The URL of the document

var VProtocol: string
the string where the protocol part of the URI is returned

var VHost: string
the hostname for the server where the document is located

var VPath: string
the port number that was specified in the URI. If this is blank, the default port is used

var VDocument: string
the directory on the server where the document is located

var VPort: string
the name of the document or file which is being retrieved

var VBookmark: string
this is an anchor to a section on a document

Description
ParseURI is a class procedure that parses the URI specified in the URI parameter into its components which are placed in the string parameters; Protocol, Host, Port, Path, Document, and Bookmark.

    TIdURI.ParseURI('http://www.nevrona.com:80/Indy/FAQ.html#Exception',
      protocol, host,  path, document, port, Bookmark);
  

Will return: