Click to See Complete Forum and Search --> : HttpWebRequest in .Net


Vitaly Gorelov
March 23rd, 2002, 12:12 AM
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

Cyberwalker
July 22nd, 2003, 01:31 PM
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