Code Comments
Programming Forum and web based access to our favorite programming groups.I have a WebRequest that is posting various data. Of course, it won't let you post the data if you're not "logged in". I need to grab the cookies that are sitting in my IE cache for the site, and send them up with the request. Is there an easy way to do this? Is there ANY way to do this? I have HttpWebRequest wr = (HttpWebRequest)WebRequest.Create(url); I THOUGHT that I simply had to: CookieContainer cc = new CookieContainer(); CookieCollection cookies = cc.GetCookies(wr.RequestUri); cc.Add(cookies); wr.CookieContainer = cc; I was painfully wrong. I'm running out of hair from pulling, and forehead from banging :( Brian Hampson System Adminsitrator, Americas ALS Environmental
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.