'Cookies not seen in getdetailedCookies() in rest assured
When i Hit my API in postman it retrieves me 3 cookies like the ones below which are HttpOnly
- MrID
- crsID
- pnrId
but when the same is executed through rest assured I don't see all the cookies except for the crsID Below is the code iam currently runnning .
Response response = (Response) given().filter(filter).log().all().when().get(
"https://sr.ggaon.com/vr/redirect-login/9sasasa859570ce235c-7fd1-441c-bd66-ddad?redirect_url=/sr/")
.getBody();
System.out.println(Cookies are response.getCookies());
o/p Cookies are {crsID =m4zQ9ad1nrhbPbwvX9YJvs258bVkJvP1}
Note: the URL in get is a redirected URL which comes as a reponse when i login to my Application.
Can someone help me get all the cookies in java rest assured?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
