直接IE访问是可以的
https://book.flypeach.com/default.aspx?ao=B2CENUS&ori=KIX&des=CTS&dep=2016-01-28&adt=1&chd=0&inf=0&langculture=en-US&bLFF=false
爬取就不行 下面是代码
[C#] 纯文本查看 复制代码 HttpItem item_ = new HttpItem()
{
URL = "https://book.flypeach.com/default.aspx?ao=B2CENUS&ori=KIX&des=CTS&dep=2015-11-28&adt=1&chd=0&inf=0&langculture=en-US&bLFF=false",//URL 必需项
Method = "get",//URL 可选项 默认为Get
ContentType = "text/html",//返回类型 可选项有默认值
//ContentType = "application/x-www-form-urlencoded",//返回类型 可选项有默认值
Host = "book.flypeach.com",
UserAgent = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/5.0; .NET4.0C; .NET4.0E)",
Accept = "application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, */*",
Allowautoredirect = true,//自动跳转
Cookie = cookie,
};
//请求的返回值对象
HttpResult result_ = http.GetHtml(item_);
//获取请请求的Html
string html_ = result_.Html;
|