Hari
Hari

Reputation: 127

How to parse the response header to a variable in JMeter

How to parse the response header to a variable in JMeter using regex.

Below is the sample snippet of headers.

enter image description here

Upvotes: 1

Views: 2372

Answers (1)

Hari
Hari

Reputation: 127

1) Add an Post Processor (Regular Expression extractor) like below. enter image description here

2) Write the condition like below snippet.

enter image description here

3) Print the value for your reference in a Bean Shell Sampler

${resp_header}

sample print snippet for reference.

enter image description here

Upvotes: 1

Related Questions