Hi,
I've worte a program that will grab the html file content from web server.
It's work
------------------------------------------------------------------------------------------------------------------------------
string strURL = "http://127.0.0.1/webapp/requestview.asp x?id=1185";
HttpWebRequest request = (HttpWebRequest )WebRequest.Cre ate(strURL);
HttpWebResponse response = null;
NetworkCredenti al credentials = new NetworkCredenti al("abc", "password",
"svr001");
request.Credent ials = credentials;
response = (HttpWebRespons e)request.GetRe sponse();
------------------------------------------------------------------------------------------------------------------------------
But when I change Cookieless to "true" in web.config file, the URL will
redirect to other URL with session id
http://127.0.0.1/webapp/(fadfasdfade...w.aspx?id=1185
And I will receive "401 Unauthorized" from WebException when I call
request.GetResp onse().
How can I solve this problem? and grab the file content
Thanks
Daatmor