0
votes

I have an API name loginUser, which generates the authorization Token, that is to be passed in other subsequent APIs.

Below is the response:-

HTTP/1.1 200 OK Date: Sat, 10 Nov 2018 07:08:45 GMT Content-Type: application/json; charset=utf-8 Content-Length: 71 Connection: keep-alive Server: nginx/1.10.3 (Ubuntu) X-Powered-By: Express Access-Control-Allow-Origin: * Access-Control-Expose-Headers: date, authorization, x-powered-by, connection, server, access-control-allow-origin, content-type, content-length, x-final-url authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIyYmEyYjc1My03NWEwLTQxNGYtYWFiOC0zZGY1M2I4YmIwMDEiLCJpc0Nvb2siOnRydWUsImlhdCI6MTU0MTgzMzcyNX0.3FRVpHm4EF2Ahzzy-OjbZ2EeZto6-hSFKHNtG5wcjBs

Where I want to fetch the authorization.

I'm using Regular Expression Extractor, but it is throwing below error (URISyntaxException: illegal character in the path)

Snapshots:-

Step_1

Step_2

Step_3

Step_4

I have seen couple of queries related to this Error but not in Jmeter, And i tried using % also, to get rid out of this error, but that didn't work out.

Thanks in advance.

1

1 Answers

0
votes

Authorization is sent/receive in headers,

Change Step 2, Field to check should be Response Headers to get the value