I have a problem when I try to get the cookies from the response header in the Titanium.Network.HTTPClient.
I use the following code:
var xhr = Titanium.Network.createHTTPClient();
var cookies = xhr.getResponseHeader("Set-Cookie");
and what I get is:
ASP.NET_SessionId=ir66445hj76y9fu9bx; path=/; HttpOnly
The ASP.Net_Session is only a part of the "Cookie" header, and the rest is missing.
I haven't set the HttpOnly flag to the cookies.
What is wrong?
Thanks in advance,
Looking at the app source code I have found (in TiHTTPClient.java) that the "getResponseHeader" function seems to return only the first header:
Header h = response.getFirstHeader(header);
I don't understand why it is done this way.
Could someone from the appcelerator support check whether it is a bug or not?