as @FireFart pointed res.get_cookies should work here, any reason to not use it and parsing it on your way?