用DOM实现文章采集--采集到网页源码(12)
来源:未知 责任编辑:责任编辑 发表时间:2014-04-20 03:40 点击:次
encoding = this._HttpEncoding;
}
info.HTML = new StreamReader(responseStream, encoding).ReadToEnd();
info.StatusCode = HttpStatusCode.OK;
responseStream.Close();
response.Close();
return info;
}
catch (Exception ex)
{
info.HTML = "错误:" + ex.Message;
}
}
catch (Exception ex)
{
info.HTML = "错误:" + ex.Message;
}
finally
{
if (responseStream != null)
responseStream.Close();
if (response != null)
response.Close();
}
return info;
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>