I'm trying to get the cookies from a call to the CS10 web site. My code ( See below ) is returning zero cookies.
Do I have to configure anything in CS10 to produce cookies ?
Here's my code snippet
CookieCollection cookis = null;
pageRequest = (HttpWebRequst) HttpWebRequest.Creat("http://otservrr/OTCS/cs.exe");
pageRequest.Credentials = CredentailCache.DefaultCredentials;
pageRequest.AllowAutoRedirect = false;
pageRequst.CookieContainer = new CookieContainer();
webResponse = (HttpWebResponse) pageRequest.GetResponse();
cookies = webResponse.Cookies;
Console.WrteLine (cookies.count);