0
votes

My HTTP Request has child HTTP Header Manager. The HTTP Header Manager has dynamic values, and other parameters depending on search on GUI application. See picture. The xsrf-token is dynamic, and auditlog varies depending on my search by vEnl. I am using JMeter 4.0. The HTTP Requests are GET, and therefore cannot use the checkbox "Use multipart/form-data for POST" either. How can I correlate/parameterize in this situation?

HTTP Header Manager

2

2 Answers

0
votes

Use Regular Expression Extractor in the response of whatever request which has the right value for this Header Manager. Name it for example :testDynaVar

Then use ${testDynaVar} in auditlog's value. The parameter value will be passed to this header manager.

0
votes

You need to extract this xsrf-token from the previous response using a suitable JMeter Post-Processor, save it into a JMeter Variable and substitute recorded hard-coded value with this variable in the HTTP Header Manager, check out How to Load Test CSRF-Protected Web Sites article for example implementation.

HTTP Header Manager can evaluate JMeter Variables in the runtime and substitute the placeholders with the respective values:

enter image description here

enter image description here

with regards to this auditlog header your question doesn't contain enough information to come up with the proper configuration, from the first glance you can parameterize this ctime argument using __time() function