Hi Team,
Could you please help me in handling authorization token from response headers using headerRegex.
Response Headers
Set-Cookie: __loggedin=false; Domain=xxxx.com; Path=/
Set-Cookie: PNOODLE=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
Set-Cookie: PNOODLE=f520b2e1-6fbe-45e5-a3f8-; Domain=.com; Path=/
Set-Cookie: oa2=%3Bdx1Rx3Tjip9bozPu5UiZUUz0vWMdLqYD3YJSWa%2BMAP3BMqjY9NbkMUR46F%2BC1yhbsO2VSiaEB%2BRHE2ItowKvrUKnGfa7ZVhYr1PSKOCuvc5kWi54CHasePpEYG%2xVkt6oLIVu5AEVLpIEgN%2Fe%2FqMUvjQnJGH%2B7P0uGi4WRiaL%2BjE8dWdVWerCY5BtSQw0KGDe2TSHOfnO2UjTXos4U3inDEIuYU7Y7HCHlhrwEcr9vpR4%3D; Domain=*.com; Path=/; Secure;
FYI…
I tried below options. Could able to get value from getCookieValue(), but not from
headerRegex
headerRegex((Set-Cookie,oa2=(.*?))).find.exists, found nothing
.check(headerRegex("Set-Cookie", "oa2=(.*?)").saveAs("oauthidno")))
.exec(
getCookieValue(
CookieKey("oa2")
.withSecure(true)
.saveAs("OAUTHID")
.withDomain("XXXX.com")
)
Thanks & Regards,
Srinivas M
Click here to Reply