Hi,
I am using a web client to allow cookie support.
public class MyWeb : WebClient
{
private CookieContainer cookies = new CookieContainer();
protected override WebRequest GetWebRequest(Uri address)
{
WebRequest request = base.GetWebRequest(address);
if (request is HttpWebRequest)
(request as HttpWebRequest).CookieContainer = cookies;
return request;
}
}
My web.config has <forms cookieless="UseDeviceProfile"... Currently the WebClient does not have a device profile that supports cookies (according to the web site).
How do I enable this, there must be a way to send the correct header?
Thanks