Response header Location extract in JMeter

1,327 views
Skip to first unread message

Quynh-Nhu Ly

unread,
Jul 30, 2021, 1:25:02 PM7/30/21
to jmeter-plugins
Hello Experts,

Please kindly advise me with this.

I am trying to extract the location value from the Response header in JMeter (only value 646) as per attached.  Then, I need to use this value in the subsequent steps.  I have tried JSON Extractor and Regular Expression Extractor but no success.  Kindly advise me.  Your help is greatly appreciated. Sample.PNG

DT

unread,
Aug 1, 2021, 4:23:13 AM8/1/21
to jmeter-plugins
  1. Add a Regular Expression Extractor as a child of the request which Location header you would like to extract
  2. Configure it as follows:
Untitled.png

That's it, the value you're looking for should be stored into ${foo} JMeter Variable


More information:

Message has been deleted

Quynh-Nhu Ly

unread,
Aug 10, 2021, 1:52:01 PM8/10/21
to jmeter-plugins
Good afternoon DT,

You are supper great.  I truly appreciate your advice very much.  It works!!!! 

Kindest Regards,
Quynh Ly
Reply all
Reply to author
Forward
0 new messages