Reputation: 1336
I'm trying to work with JMeter to test some web services. So far so good, but I was wondering if you could do the following -
I make a http POST request to create a resource, and if successful the response comes back with the location of the resource in the headers. What I would like to do is take the value of this header, and use it in a http GET request to retrieve the resource. Is this possible with JMeter?
Any help is much appreciated
Upvotes: 0
Views: 1836
Reputation: 1154
Use the regular expression extractor to extract the header value to a variable by using a regex. Then use the variable like any other variable in your GET request.
Upvotes: 2