|
1金钱
即时搜索功能,也就是搜索框的下拉列表,为什么获取不到内容呢,
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "http://www.meilishuo.com/aj/search/?searchKey=" + “要搜索的内容”,//URL 必需项
Referer = "http://www.meilishuo.com/",//来源URL 可选项
Accept = "application/json, text/javascript, */*; q=0.01",
KeepAlive = true,
Method = "get",//URL 可选项 默认为Get
Cookie = cookies,//带不带cookie都一样,娶不到
UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 BIDUBrowser/6.x Safari/537.36",//用户的浏览器类型,版本,操作系统 可选项有默认值
ResultType = ResultType.String
};
HttpResult result = http.GetHtml(item);
string html = result.Html;
取不到任何内容,求打什么指点应该怎么做,这种情况,要是用webBrowser可以获取到吗,怎么操作,谢谢了
|
|