Apama Documentation : Connecting Apama Applications to External Components : Standard Connectivity Plug-ins : The HTTP Client Transport Connectivity Plug-in : Mapping events between EPL and HTTP : Dealing with cookies
Dealing with cookies
Some HTTP services set cookies and require them to be set in further requests. The HTTP client stores cookies in metadata.http.cookies.keyname entries.
In requests, the HTTP client reads all of the metadata.http.cookies entries and combines them into a single HTTP Cookies header to send to the server.
In responses, the HTTP client takes any number of HTTP Set-Cookie headers and turns them into corresponding metadata.http.cookies entries.
If you need to take a specific cookie in a response and return it in future requests, you need to map it out into a field in the response event, and then map it back from future request events.
Copyright © 2013-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback