Rest get cookies

0
Hi everyone, I'm trying to set some cookies i get via a rest service. I have tried doing this with the REST Module with their java action getResponseCookies but I dont get any cookies back (the list is empty). Its the exact same problem Wesley Visser had 3 weeks ago: see https://community.mendix.com/link/questions/88881 It works fine in Postman So does anybody know how to make this work or maybe a different way to go about this?
asked
1 answers
1

Hi Hunter,

I see that you are using the 7.10 modeler. Have you tried retrieving the headers from the http response object?

Here is the system domain model

 

In your rest service, set your response to "store in http response"

and then retrieve the headers via retrieve by association

If you have to use the import mapping.  Create a string variable and set the value to 

$HttpResponse/Content

 

and then call the import mapping activity

 

Hope this helps!

answered