There is a code:
private string test () { HttpRequest req = new HttpRequest(); req.Cookies = new CookieDictionary(); HttpResponse resp = req.Post("Здесь страница логина пароля"); HttpResponse resp1 = req.Post("После логина пароля переходит на эту страницу, для вытаскивания данных"); string k = resp1.ToString(); var htmlDoc = new HtmlAgilityPack.HtmlDocument(); htmlDoc.LoadHtml(k); var node = htmlDoc.DocumentNode.SelectSingleNode("//*[@id='process']/table[2]/tbody/tr[2]/td[2]/span"); return "Test" + node.InnerText; } After this, a NULL value is returned. On some sites everything works fine. The path to getting the value is correct, I take it through XPath , It works somewhere, somewhere it does not. Please help! After the error crashes, I look at string k in the HTML visualizer and it shows all the text I need. But when parsing it is still NULL .