I am just doing some API tests and I am trying to verify that the cookie data sent down is correct, however I cannot find any documentation around getting cookies from the response object, only from the request.
So is there a quick way to do this like you would do with the requests req.cookies["myCookie"]
, I know I can get the header and get the set-cookie one from there but its a bit of a mess trying to parse out the cookie data from there manually.
Could not find a solution, had to end up doing a text match on the set-cookie header.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With