|
通过抓包抓取正常的网页的Raw stream如下
GET /business/?action=queryUserDesktopInfo&operatorId=100005873765 HTTP/1.1
Accept: */*
Referer: http://10.96.24.123/webframe/shdesktopui/Desktop.jsp
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; EmbeddedWB 14.52 from: http://www.bsalsa.com/ EmbeddedWB 14.52; .NET CLR 2.0.50727)
Host: 10.96.24.123
Connection: Keep-Alive
Cookie: AlteonP=EZicLHsYYArHuOtjsLMgPg$$; JSESSIONID=0000eWMX7zOGRETT3fdgcuq1t4P:-1; USERINFO_ATTR=AppframeSerial_10037; _BelongedSrvId=channel-web-inst1-node2-srv
我通过软件模拟发出的Raw stream如下:
GET /business/?action=queryUserDesktopInfo&operatorId=100005873765 HTTP/1.1
Accept-Encoding: gzip, deflate
Accept: */*
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)
Cookie: AlteonP=EZicLHsYYArHuOtjsLMgPg$$; JSESSIONID=0000eWMX7zOGRETT3fdgcuq1t4P:-1; USERINFO_ATTR=AppframeSerial_10037; _BelongedSrvId=channel-web-inst1-node2-srv
Referer: http://10.96.24.123/webframe/shdesktopui/Desktop.jsp
Host: 10.96.24.123
Connection: Keep-Alive
看起来除了请求项目顺序不一样,其他信息都一模一样,但模拟的却无法获取正确的内容。
图1是正常的返回内容,图2是软件模拟返回的内容。正常多了chunked,gzip,且返回内容乱码,应该是有gzip压缩。但模拟返回的内容直接返回的是xml内容,但不是想要的数据。问题出在哪,怎么样能像正常网页那样获取内容。一点思路都没,求助啊
|
|