I have this code which is working absolutely fine on Windows Phone 8.1.
Unfortunately it doesn't work on Windows 8.1. The response that i am getting from this request give me a page with session expired, the same way it would be without the cookie. The code seems to be fine but it looks like the cookie doesn't get set or I am missing something else...
Is there something that needs to be added to make it work for Windows Store apps?
CookieContainer cookies = new CookieContainer();
HttpClientHandler handler = new HttpClientHandler();
handler.CookieContainer = cookies;
using (var client = new HttpClient(handler))
{
client.DefaultRequestHeaders.Add("Cookie", value.ToString());
htmlPage = await client.GetStringAsync("https://www.someurl.com" + querystring);
}