How can i get and set cookie parameter in REST Message?

Rimi
Kilo Contributor

How can i get and set cookie parameter in REST Message? i have tried to use getCookies(), setCookies(), getHeader() but not able to get response properly... on trying getHeader("set-cookie") it gives the complete header value and i am not able to set it.

13 REPLIES 13

Rimi
Kilo Contributor

Community Alums
Not applicable

Rimi,



Did you figure this out?



Tim


no not yet, i am able to fetch cookie param in header using getHeader("Set-Cookie") but i need to link two subsequent web service call by setting some unique value in Cookie now, thats where i am stuck and my workflow returns false.


not sure what you trying to do, but you may also use JavaScript to get access to cookies like this: document.cookie and it seems like all cookie functions that you've mentioned are using this method. So give it a try.