-
HttpWebRequest in .Net
Hello,
Has anyone worked with HttpWebRequest with Cookie support? I need to receive page from WebServer, but for the request with cookies.
It works well for requests without cookies. For example,
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://192.168.0.1/cookie/");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream stream = response.GetResponseStream();
But it seems, that contents of CookieContainer is simple ignored.
Do you have any suggestions?
Thanks,
Vitaly Gorelov
-
hello everybody!
i've the same problem (hmm... 1 year later ....)
can anybody explain me, how to handle cookies?
(for example to pass a login, that requires them)
thanks in advance
ciao