How do i retrieve cookies information from the response returned by an REST API request.
Manish,
Could you try following script?
def response = WS.sendRequest(findTestObject(‘REST_CommentDetails’))
headerFields = response.getHeaderFields()
println headerFields[‘Set-Cookie’]
1 Like
The topic is closed due to inactiveness. Feel free to open a new one if you have any concerns.