ratsstack
ratsstack

Reputation: 1021

Retrieved token Value is not being passed correctly - backslashes and pipes changed to percent and numbers

I've got a page response which contains a "contextToken" as below. Notice the pipes and double backslashes:

enter image description here

I use a boundary extractor to successfully retrieve this value: enter image description here

The debugger correctly shows the extracted value with double backslashes and pipes:

enter image description here

However the request where I'm using this token has substituted the pipes and backlashes with % signs and numbers:

enter image description here

Since the token is not right on submission of page I get a failure. How do I retain and pass the contextToken exactly as it is?

Upvotes: 0

Views: 58

Answers (1)

Dmitri T
Dmitri T

Reputation: 168122

I believe it's a matter of visualisation only, the real problem lives somewhere else, you can check what exactly you're sending using an external sniffer tool like Wireshark, here is an example:

enter image description here

Use your browser developer tools in order to compare the token from the previous response and the token which is being sent with the next request, it might be the case you will need to transform it somehow like URL Encode, encodeURIComponent, escape HTML characters or something like this, if that will be the case refer to Apache JMeter Functions - An Introduction article to learn how to use JMeter Functions for on-the-fly data manipulations

Upvotes: 1

Related Questions