[Mono-list] Send cookies in HttpWebRequest's
Felipe Lessa
felipe.lessa at gmail.com
Fri Jan 4 18:29:30 EST 2008
On Jan 4, 2008 9:19 PM, Søren Juul <zpon.dk at gmail.com> wrote:
> HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url);
> CookieContainer CookieJar = new CookieContainer();
> CookieJar.Add(new Cookie("name", "value", "/path", ".domain.com"));
webRequest.CookieContainer = CookieJar;
> HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse();
> (...)
--
Felipe.
More information about the Mono-list
mailing list