Parse
Parse a URL string into its individual components with proper encoding.
Input
Field | Definition | Type | Required |
---|---|---|---|
url |
The formatted URL to parse. |
Text |
TRUE |
Output
Field | Definition | Type |
---|---|---|
protocol |
The URL protocol, returned in lower case. For example, http or https. |
Text |
host |
The URL fully qualified domain name, returned in lower case. For example, www.test.com. |
Text |
port |
The port specified in the URL, returned as a number. Typically 80 for http and 443 for https. If no port is specified, the card returns a null value. |
Number |
path |
The entire string following the host and port, but before the query portion of the URL. |
Text |
query |
The entire query string portion of the URL. |
Text |
Example
For the input URL http://www.test.com:8080/test url?value=example&value2=URL, this function card returns the following values:
-
protocol: http:
-
host: www.test.com
-
port: 8080
-
path: /test url
-
query: value=example&value2=URL