Table of Contents

TTMSFNCUtils.SplitURL Method

Splits a URL into host, path, query, and port parts.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

class procedure SplitURL(AURL: string; var AHost: string; var APath: string; var AQuery: string; var APort: Integer);

Parameters

Name Description
AURL URL to split. URLs without a scheme are treated as HTTPS.
AHost Receives the scheme and host portion.
APath Receives the path portion, or an empty string when no path is present.
AQuery Receives the query text without the question mark.
APort Receives the parsed port, or 0 when no port is present.