[Mono-list] CookieContainer.GetCookie

Daniel Nauck dna at mono-project.de
Fri Apr 25 07:07:31 EDT 2008


Hello,

what version of Mono are you using?

Daniel

Søren Juul schrieb:
> Hello
> 
> I am using a CookieContainer to use cookies when requesting webpages, 
> but I need to update some of the cookies, I was trying to do this by 
> getting a CookieCollection from my CookieContainer with the 
> GetCookie(Uri) method, when I do so, the CookieCollection is empty, even 
> though i have ensured there are only cookies in the CookeContainer with 
> that Uri.
> 
> 
> Very small example:
> CookieCollection cookieColl = cookieJar.GetCookies(uri);
> Console.WriteLine(cookieColl.Count.ToString());
> 
> What could I be doing wrong?
> 
> -- 
> Med venlig hilsen / Kind regards
> Søren Juul
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list