Turns out I didn't have to use cookie, cookstore or httpcontent. As far as I understand, they are mainly used for managed cookies coming from the server.
I managed to solve my problem by setting such a header
String key = "whatever"; post.addHeader("Cookie", "aml=" + key);
This can be used on httppost, httpget or httput.
It took me a few days for such a simple solution. I hope this helps someone else.
jiduvah
source share