Extract data from encoded resposne

I try to extract data from response but in Fiddler I see

And when I copy this content to https://jsonpath.com/ I see

I guess this is a cause why I get error like > request_11: Failed to build request: No attribute named ‘MyConnectionToken’ is defined 1 (50.00%)

Is it possible to handle this kind of reposne in Gatling? Or the only way is to use regex?

I test it on https://regex101.com/

And I added .check(regex(“a-zA-Z0-9=/+{152}”).find.saveAs(“MyConnectionToken”)) but in result I still see > regex(a-zA-Z0-9=/+{152}).find.exists, found nothing

W dniu poniedziałek, 14 października 2019 22:49:51 UTC+2 użytkownik Jakub Obrocki napisał:

Ok, yesterday I fixed issue with regex, correct should be [a-zA-Z0-9=/+]{152} but now I get error > request_9: Failed to build request: No attribute named ‘MyConnectionToken’ is defined. And now my question is, how can I define it? In other case I got token in header

And I guess in script it is defined here:

But token which I extracted is not in header but in body, here is the response header in Fiddler (on bottom)

And the body content

How can I define it? Should I create structure similar to headers_1 map? If yes what should be included? Thanks in advance.

W dniu poniedziałek, 14 października 2019 22:49:51 UTC+2 użytkownik Jakub Obrocki napisał: