RHTTP_PARSE_URL Function
This function returns a dynamic array containing the parts of the URL.
Syntax
RHTTP_PARSE_URL(request, URL)
Syntax Elements
request |
If assigned and not an empty string <request> will be used to fill in missing parts from the URL, for example, host and port. |
URL |
URL to be parsed. |
Return Value
The returned dynamic array will have the following attributes:
Attribute number |
Contents |
---|---|
1 |
Protocol, for example, http or https |
2 |
Host |
3 |
Port number defaults to 80 for http and 443 for https |
4 |
Path |
5 |
Query String |
If URL does not contain one or more of the components protocol, host and port number they will default to those use in the request parameter. If request is unassigned or an empty string then any missing components will be an empty string.