Internet Direct (Indy) Version 9.0.2 Beta
TIdURI.GetFullURI
Retrieves a URI value including optional fields.

function GetFullURI(const AOptionalFileds: TIdURIOptionalFieldsSet): String;
Parameters
const AOptionalFileds: TIdURIOptionalFieldsSet = [ofAuthInfo, ofBookmark]
Optional URI fields to include in the return value.

Returns
String - URI constructed from property values.

Description
GetFullURI is a String function that constructs a URI from property values, and may include optional field values as indicated in AOptionalFileds. The return value for GetFullURI contains a string in the format:

    protocol://username:password@host:port/document#bookmark
    

Username and Password property values are included in the URI when Username is not blank and AOptionalFields includes the value ofAuthInfo.

Port number is included in the URI when the property contains a non-zero value.

The value for Bookmark is included in the URI when the property is not blank and AOptionalFields includes the value ofBookmark.

Use the URI property to get the URI value without optional URI fields.