Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: [Original edit by JMeterAdmin]

...

No Format
// Fix ampersands in a string
String fixAmps(s) {
  return s.replaceAll("&","&");
}

Wiki Markup
\[the current release of JMeter already contains the fixAmps() function in the file !BeanShellFunction.bshrc\]

The function can then be called as follows:

...

The latter function call will store the result in the variable PLAIN_URL The work-rounds above can be extended to handle other transformations such as %20 -> space, %2F -> / and %3A -> :N.B. the current release of JMeter already contains the fixAmps() function in the file BeanShellFunction.bshrc.