用DOM实现文章采集--采集到网页源码(10)
来源:未知 责任编辑:责任编辑 发表时间:2014-04-20 03:40 点击:次
if (this._ProxyHost.Length > 0)
{
request.Proxy = new WebProxy(this._ProxyHost, this._ProxyInt);
}
using (Stream requestStream = request.GetRequestStream())
{
requestStream.Write(bytes, 0, bytes.Length);
requestStream.Close();
}
try
{
Encoding encoding;
response = (HttpWebResponse)request.GetResponse();
responseStream = response.GetResponseStream();
if (this._HttpEncoding == null)
{
string str = response.CharacterSet.ToLower();
if (str.Length > 3)
{
if (str.Substring(0, 3) == "iso")
{
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>