HttpWebRequest.CookieContainer Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Specifies the collection of CookieCollection objects associated with the HTTP request.
Assembly: System.Net (in System.Net.dll)
Property Value
Type: System.Net.CookieContainerA CookieContainer that contains a collection of CookieCollection objects associated with the HTTP request.
| Exception | Condition |
|---|---|
| NotImplementedException | This property is not implemented. |
If an application implements a custom WebRequest class and does not override the CookieContainer property, then the NotImplementedException is thrown.
Note: |
|---|
In versions of Windows Phone prior to Windows Phone 8 (8.0.10322.0), a response from an HttpWebRequest would have HttpOnly cookies filtered from the response before the app could read the cookie values. This issue has been resolved in Windows Phone 8 (8.0.10322.0). When you get the response, the original cookies and all of the HttpOnly cookies will be contained in the CookieContainer property. |
Note: