NewsBot
1
Sometimes I cannot retrieve cookies from the CookieContainer. The problem is in the way the class sets cookies or in the way it retrieves those cookies. Either way, the class is so restricted that I didn't find any workaround.
Is there an official place to post the bug?
Here is some simple lines to replicate the bug:
Uri uri = newUri(http://my.opera.com/);
//using CookieContainer.Add
CookieContainer cc = newCookieContainer();
Cookie c = newCookie("opera_test", "12345", "/", "my.opera.com");
cc.Add(c);
Console.Write(cc.GetCookies(uri).Count); //Works!
//using CookieContainer.SetCookies
cc = newCookieContainer();
cc.SetCookies(uri, "opera_test=12345;path=/;domain=my.opera.com");
Console.Write(cc.GetCookies(uri).Count); //Doesn't work!? CookieContainer.Count shows 1 cookie but where is it? Cannot retrieve it using any variant of opera uri.
Any help appreciated.
Thanks!
More...
View All Our Microsoft Related Feeds
Is there an official place to post the bug?
Here is some simple lines to replicate the bug:
Uri uri = newUri(http://my.opera.com/);
//using CookieContainer.Add
CookieContainer cc = newCookieContainer();
Cookie c = newCookie("opera_test", "12345", "/", "my.opera.com");
cc.Add(c);
Console.Write(cc.GetCookies(uri).Count); //Works!
//using CookieContainer.SetCookies
cc = newCookieContainer();
cc.SetCookies(uri, "opera_test=12345;path=/;domain=my.opera.com");
Console.Write(cc.GetCookies(uri).Count); //Doesn't work!? CookieContainer.Count shows 1 cookie but where is it? Cannot retrieve it using any variant of opera uri.
Any help appreciated.
Thanks!
More...
View All Our Microsoft Related Feeds