[Mono-list] Send cookies in HttpWebRequest's
Søren Juul
zpon.dk at gmail.com
Fri Jan 4 18:19:05 EST 2008
Hi all
Shouldn't i be able to send a cookie in a HttpWebRequest by adding a
CookieContainer to the request?
Something like this:
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url);
CookieContainer CookieJar = new CookieContainer();
CookieJar.Add(new Cookie("name", "value", "/path", ".domain.com"));
HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse();
(...)
Thanks in advance
--
Med venlig hilsen / Kind Regards
Søren Juul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080105/7ba0a1f3/attachment.html
More information about the Mono-list
mailing list