URL component is used for parsing and manipulating URL's. Parts of the URL can be manipulated separately.
The above code will produce the following debug output:
This function returns true if the scheme part of the URL is either omitted or is HTTP or HTTPS.
Compares two URLs to determine if they are equivalent. Two URLs are equivalent if their scheme, port, host and path parts are equal. If port is omitted in the URLs it is defaulted to 80 in case of HTTP scheme or 443 in case of HTTPS scheme. If scheme is omitted it is defaulted to HTTP.
Read and write property of type string containing the whole URL.
Read and write property of the type string which contains the scheme part of the URL
Read and write property of the type string which contains the user name part of the URL
Read and write property of the type string which contains the password part of the URL
Read and write property of the type string which contains the port from the URL
Read and write property of the type string which contains the path part of the URL
Read and write property of the type string which contains the query string from the URL
Read and write property of the type boolean. If this property is true the parts of the URL will be automatically converted to lowercase.
Read and write property of the type string which contains the host part from the URL