I can't extract the x-csrf-token and pass . I got error like csrf token expired [![enter image description here]
Asked
Active
Viewed 314 times
0
1 Answers
0
Your question doesn't contain sufficient level of details so it cannot be answered comprehensively.
- First of all check your
${x}
JMeter Variable value using Debug Sampler and View Results Tree listener combination - Then check the request header using the aforementioned View Results Tree listener. The token should be exactly the same as the one returned in the previous request.
Also it seems that your token comes in JSON-like structure, JSON is not a regular language so it would be a better idea considering using JSON Extractor instead of Regular Expression Extractor

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