Apama 10.3 | 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 client requests | 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-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.