Hi, We want to authenticate for a REST GET call with a cookie. If we test this in the browser with an URL with a username and password this works (to add the Cookie) for a successful call. If we try to use te RestServices.addCookieToNextRequest java action we get "Response status: 401 Unauthorized", when we try to make the call. Is it possible to add authentication via an URL (with username and password) with this java action and how should the values (name, value, maxageseconds, path, domain, httponly) be configured? (Trying to rebuild the cookie that is visible in the browser does not work for us). Or can we do it another way? Thanks a lot, Martijn
Martijn van Kuijk
try to construct the cookie when you inspect this with the developer console of your browser(F12) like this (cookie of this mx forum):
Pim van der Noll
The solution was to do a REST GET request first with the URL with username and password. In the responseheader we filtered the security key after that we could use the AddCookieToNextRequest with as a value the security key.