我在尝试下载HTML,因此我可以使用最小带宽进行解析并下载。这是我的一些代码。从WebResponse下载响应 - 包括图像?
if (!String.IsNullOrEmpty(siteAddress))
webReq = WebRequest.Create(siteAddress)
WebResponse webRes = webReq.GetResponse();
Stream streamResponse = webRes.GetResponseStream();
StreamReader streamRead = new StreamReader(streamResponse);
StringReader sr = new StringReader(streamRead.ReadToEnd().Trim());
streamResponse.Close();
streamRead.Close();
webRes.Close();
HtmlAgilityPack.HtmlDocument hDoc = new HtmlAgilityPack.HtmlDocument();
hDoc.Load(sr);
有人可以确认检索响应只提供文本响应,并且也没有下载图像吗?使用HTMLAgilityPack方法加载时怎么样?