站长,刚刚我也想到了是http协议版本的,不过在在线网站上测试了一下,还是出现的这个问题!
以下是app抓包的数据文件:
[C#] 纯文本查看 复制代码
GET /gw/mtop.taobao.wsearch.suggest/1.0/?data=%7B%22area%22%3A%22wireless%22%2C%22code%22%3A%22utf-8%22%2C%22q%22%3A%22%E7%94%B7%E9%9E%8B%22%2C%22tab%22%3A%22all%22%2C%22ttid%22%3A%22600000%40taobao_android_6.11.0%22%2C%22utd_id%22%3A%22WZfIL1AbavgDAPdplA3L2Zom%22%7D HTTP/1.1
x-features: 27
x-page-name: com.taobao.search.searchdoor.SearchDoorActivity
x-location: 113.296397%2C23.269209
user-agent: MTOPSDK%2F3.0.3.4+%28Android%3B5.1%3BMeizu%3BPRO+5%29
x-ttid: 600000%40taobao_android_6.11.0
cache-control: no-cache
a-orange-q: appKey=21646297&appVersion=6.11.0&clientAppIndexVersion=1120170929195629818&clientVersionIndexVersion=1220170925174532058
x-appkey: 21646297
x-region-channel: CN
x-mini-wua: HHnB_wNVzp7AAkoXOQJKy%2FIVr30j1oBdJZfRJDPAi%2BnUIU13e3%2BILe8VATLb9jY96BYflxVD1ZcmA9ZV3D3OzHXuSnDLNQhT%2FT5Ii7KT33YdB2RY%3D
x-nq: WIFI
x-c-traceid: WZfIL1AbavgDAPdplA3L2Zom15066863204380022113600
content-type: application/x-www-form-urlencoded;charset=UTF-8
x-app-conf-v: 18
x-app-ver: 6.11.0
x-t: 1506686320
x-pv: 5.1
f-refer: mtop
Cookie: cna=PyNVEk3gEkACAXQXGtctbqkG; cna=PyNVEk3gEkACAXQXGtctbqkG
x-nettype: WIFI
x-utdid: WZfIL1AbavgDAPdplA3L2Zom
x-umt: ZVHVngWnPTSB0PZ5mOrLyEiXFQjYiazk
x-devid: AurOXOhggedDsykZUiX9BFglsAtDDEDIMlr3ijOBWQuI
x-sign: ab203800403bb44769c67c6e3b809b085353950a77d186c362
x-page-url: http%3A%2F%2Fs.m.taobao.com%2Fh5entry
Host: guide-acs.m.taobao.com
Accept-Encoding: gzip
Connection: Keep-Alive
HTTP/1.1 200 OK
Date: Fri, 29 Sep 2017 11:58:24 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 957
Connection: keep-alive
M: mobile
S: TEMP,eygSKL0EkPGetoUn,STATUS_NOT_EXISTED,null|memory session
TBTrack-Id: du=eygSKL0EkPGetoUn
Cache-Control: no-cache
pragma: no-cache
x-node: 4a06d6587d04bb7bac96ddbabc05a3e83c5cf193b34f56ea1fdd82512fd7b561
x-m-update-unitinfo: type=unit,prefix=unsz
x-retcode: SUCCESS
x-bin-length: 957
X-Powered-By: m.taobao.com
Server: Tengine/Aserver
s-rt: 70
x-aserver-sret: SUCCESS
我写的代码:
[C#] 纯文本查看 复制代码 HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "http://guide-acs.m.taobao.com/gw/mtop.taobao.wsearch.suggest/1.0/?data=%7B%22area%22%3A%22wireless%22%2C%22code%22%3A%22utf-8%22%2C%22q%22%3A%22%E7%94%B7%E9%9E%8B%22%2C%22tab%22%3A%22all%22%2C%22ttid%22%3A%22600000%40taobao_android_6.11.0%22%2C%22utd_id%22%3A%22WZfIL1AbavgDAPdplA3L2Zom%22%7D",//URL 必需项
Method = "GET",
Timeout = 100000,
Cookie = "cna=PyNVEk3gEkACAXQXGtctbqkG; cna=PyNVEk3gEkACAXQXGtctbqkG",
UserAgent = "MTOPSDK%2F3.0.3.4+%28Android%3B5.1%3BMeizu%3BPRO+5%29",
Accept = "gzip",
ContentType = "application/x-www-form-urlencoded;charset=UTF-8",
ProtocolVersion = System.Net.HttpVersion.Version11,
};
HttpResult result = http.GetHtml(item);
MessageBox.Show(result.Html);
textBox1.Text = result.Html;
但是还是抓取不到这个数据,是咋回事?
还请站长指教一下,谢谢了!
|