Hello,
I have a problem with creating a web scenario for my website, i want to extract the header Location from
this POST response below:
Cache-Control no-cache="set-cookie, set-cookie2"
Content-Language en-US
Content-Length 0
Date Tue, 05 Feb x 11:48:18 GMT
Expires Thu, 01 Dec x 16:00:00 GMT
Location /mysite/something/?x=fhhfhfhA
Set-Cookie JSESSIONID=xyz; Path=/; Secure; HttpOnly
PromoAds=xyz==; Expires=Thu, 10-Mar-16
11:48:19 ; Path=/; Secure
Strict-Transport-Security max-age=8640000; includeSubDomains
X-Content-Type-Options nosniff
X-Frame-Options DENY
Im trying with
{location}=regex:"Location":"(.*)"
and then pass this to next step as URL, it works with normally setting variable as:
{location}="something"
How to extract the Location header with regex?
I have a problem with creating a web scenario for my website, i want to extract the header Location from
this POST response below:
Cache-Control no-cache="set-cookie, set-cookie2"
Content-Language en-US
Content-Length 0
Date Tue, 05 Feb x 11:48:18 GMT
Expires Thu, 01 Dec x 16:00:00 GMT
Location /mysite/something/?x=fhhfhfhA
Set-Cookie JSESSIONID=xyz; Path=/; Secure; HttpOnly
PromoAds=xyz==; Expires=Thu, 10-Mar-16
11:48:19 ; Path=/; Secure
Strict-Transport-Security max-age=8640000; includeSubDomains
X-Content-Type-Options nosniff
X-Frame-Options DENY
Im trying with
{location}=regex:"Location":"(.*)"
and then pass this to next step as URL, it works with normally setting variable as:
{location}="something"
How to extract the Location header with regex?