We are trying to make a parsing over an intranet site. The html response is Ok.
The problem is to load the string html in the class HtmlDocument.
We are getting a 401 Unauthorized status. What I don't understand is why this status if there is no http request when loading from string.
Our code is as follows:
..................
WebResp = (HttpWebResponse)WebReq.GetResponse();
Stream answer = WebResp.GetResponseStream();
StreamReader _answer = new StreamReader(answer);
string responseText = _answer.ReadToEnd();
HtmlAgilityPack.HtmlDocument resultat = new
HtmlAgilityPack.HtmlDocument();
resultat.LoadHtml(responseText);
Any help?