Parse

Parse a URL string into its components with proper encoding.

Input

Field Definition Type Required
url Formatted URL value to be parsed. String TRUE

Output

Field Definition Type
protocol URL protocol returned in lower case. For example, http or https. String
host URL host property returned in lower case. For example, www.test.com. String
port Port specified in the URL, returned as a number. If no port is specified, a null value is returned. Typically 80 for HTTP and 443 for HTTPS. Number
path The entire string following the host value (including the port) and before the query portion of the URL. String
query Entire query string portion of the URL. String

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

Related topics

Functions in Workflows

Workflow elements