Skip to main content

Encode URL

Sophie avatar
Written by Sophie
Updated over a week ago

Definition and Usage

Encodes a URL by converting special characters to their corresponding percent-encoded values. This command is useful when working with URLs that contain special characters, spaces, or non-ASCII characters that need to be properly encoded for web requests.


Parameter Values

Input parameters

Parameter

Description

Possible Values

Required

Options / Notes

URL to encode

Enter the URL to encode

Any valid string

Yes

You can use variables by clicking the {x} button

Error handling

Parameter Name

Description

Throw error & stop

When an error occurs, the action will trigger an error and stop the execution of the entire app.

Retry command

If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process.

Ignore error & continue

When an error occurs, the action will be ignored, and the workflow will continue without interruption.

Variables produced

Store the processed URL into a new variable. The output variable will contain the URL with special characters converted to their percent-encoded equivalents.


Using Variables in Conditions

You can use variables in this command by clicking the {x} button next to the input field. This allows you to dynamically encode URLs stored in previously defined variables. The output variable can be used in subsequent actions that require encoded URLs, such as web requests or API calls.


Notes

  • URL encoding replaces spaces with %20, plus signs with %2B, slashes with %2F, and other special characters with their corresponding encoded values.

  • This command follows standard URL encoding practices as defined in RFC 3986.

  • Common characters that get encoded include spaces, ampersands (&), question marks (?), equals signs (=), and non-ASCII characters.

  • The encoding is essential for creating valid URLs that can be properly processed by web servers.

Did this answer your question?