Forum Discussion
PBruce
Staff
12 years agolooks like your sample code is ASP.NET, so assuming IIS comes back with both the usual redirection headers and valid HTML in the response body, you can use a Data Extractor (regular expression) to pull the dynamic ID out of the 302 response body as a named variable (ex: "uniqueKey"). something like this example: http://regexr.com?381p8
then in your subsequent request, wherever the unique key is needed, substitute for the name of the variable with an at-sign in the beginning (ex: "@uniqueKey").
then in your subsequent request, wherever the unique key is needed, substitute for the name of the variable with an at-sign in the beginning (ex: "@uniqueKey").