2

I need to extract a value from http response which is in the format "test/23|temp value" and need to pass it in next request string body as "test%2F%7Ctemp+value" I believe we are doing some form of encoding. how can we achieve this in JMeter ? Appreciate if any one can help.

Kumar
  • 399
  • 4
  • 16

1 Answers1

0

Take a look at __urlencode() function

${__urlencode(test/23|temp value)}

it does percent-encoding of the input and returns the result in the place where it's called in the runtime:

enter image description here

More information on JMeter Functions concept: Apache JMeter Functions - An Introduction

Dmitri T
  • 159,985
  • 5
  • 83
  • 133