Use HttpClientas a new way to interact with remote resources via http.
, , async , .Result. , HttpClient , .Net 4.5, :
HttpClient client = new HttpClient();
using (var response = await client.GetAsync(url))
{
using (var content = response.Content)
{
var result = await content.ReadAsStringAsync();
var document = new HtmlDocument();
document.LoadHtml(result);
var nodes = document.DocumentNode.SelectNodes("Your nodes");
}
}
async/await: Async/Await - by @StephenCleary | 2013 .