14 years ago
Pass cookie value to another request
Hi
I am working on an service, which is using RESTful APIs. To access the API, I need to sign-in first to get the session token, which is returned in the "Set-Cookie" header of the sign-in response, and then pass this session token in the API's request header.
I am able to create two steps in the testsuite, one is to HTTP POST to sign in and get response, and another one is to request for RESTful API. But I don't know how to extract the session token value out from the sign-in response, and pass it to the request of API.
Is there any way to do that in soapUI?
I am working on an service, which is using RESTful APIs. To access the API, I need to sign-in first to get the session token, which is returned in the "Set-Cookie" header of the sign-in response, and then pass this session token in the API's request header.
I am able to create two steps in the testsuite, one is to HTTP POST to sign in and get response, and another one is to request for RESTful API. But I don't know how to extract the session token value out from the sign-in response, and pass it to the request of API.
Is there any way to do that in soapUI?