JMeter __urlencode function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values.
Also documented in context in the full Functions and Variables reference.
Function to encode a string to a application/x-www-form-urlencoded string.
For example, the string
\${__urlencode(Word "school" is "รฉcole" in french)}returns
Word+%22school%22+is+%22%C3%A9cole%22+in+french.
Uses Java class URLEncoder.
| Name | Required | Description |
|---|---|---|
| String to encode | Yes | String to encode in URL encoded chars. |