Request URL:
http://www.188games.com/zh-cn/Service/OddsService?GetOdds&_=1348808065295&Tab=Today&UIBetType=ftahou&SportId=1&EventDate=28%2FSep%2F2012&IsFutureDate=false&IsInplay=false&OddsType=2&SortBy=1&IsFirstLoad=true
第一个参数是这个下划线,值是个动态生成的数字,数字是什么生成的?
_=1348808065295
http://www.188games.com/zh-cn/Service/OddsService?GetOdds&_=1348808065295&Tab=Today&UIBetType=ftahou&SportId=1&EventDate=28%2FSep%2F2012&IsFutureDate=false&IsInplay=false&OddsType=2&SortBy=1&IsFirstLoad=true
第一个参数是这个下划线,值是个动态生成的数字,数字是什么生成的?
_=1348808065295
alert(new Date().getTime())
var _ = new Date().getTime();
alert(_);
alert(new Date().getTime())
关键你要看它为什么要生成这个。。
通常这样做为了防止请求的数据被缓存了,
至于那个数字是啥,只要保持不一样就行了,可以时间也可以GUID等等你自己写的算法
用这个地址单独访问维护会返回不了数据呢
页面上是{lostConn:true}
请求中返回的是空吧
点主页中的足球连接,会记录如下信息
Request URL:http://www.188games.com/zh-cn/Service/OddsService?GetOdds&_=1348823648316&Tab=Today&UIBetType=ftahou&SportId=1&EventDate=28%2FSep%2F2012&IsFutureDate=false&IsInplay=false&OddsType=2&SortBy=1&IsFirstLoad=true
Request Method:GET
Status Code:200 OKAccept:*/*
Accept-Charset:GBK,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:zh-CN,zh;q=0.8
Connection:keep-alive
Cookie:filterStatus=inplay=&noninplay=f1btn|1,f2btn|1; ASP.NET_SessionId=rxj5amrtojhu5lucctppo245; sscd=rd546o00000000000000000000ffffac152182o80; timeZone=480; dst=0; __utma=140061107.1100746032.1348029383.1348806665.1348823502.7; __utmb=140061107.1.10.1348823502; __utmc=140061107; __utmz=140061107.1348029383.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); HighlightedSport=FOOTBALL|False; lan=zh-cn; BS@Cookies=
Host:www.188games.com
Referer:http://www.188games.com/zh-cn/sports/football/matches-by-date/today/full-time-asian-handicap-and-over-under
User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.78 Safari/535.11
X-Requested-With:XMLHttpRequestGetOdds:
_:1348823648316
Tab:Today
UIBetType:ftahou
SportId:1
EventDate:28/Sep/2012
IsFutureDate:false
IsInplay:false
OddsType:2
SortBy:1
IsFirstLoad:trueCache-Control:private
Content-Encoding:gzip
Content-Type:text/plain; charset=utf-8
Date:Fri, 28 Sep 2012 09:14:18 GMT
Server:Microsoft-IIS/7.0
Transfer-Encoding:chunked
Vary:Accept-Encoding
X-AspNet-Version:2.0.50727
X-Powered-By:ASP.NET
返回的数据是JSON
{"p":{"c":0,"t":3},"r":90,"t":0,"bt":[{"c":0,"k":"full-time-asian-handicap-and-over-under"。
我在google浏览器看到的是
返回的数据是JSON
{"p":{"c":0,"t":3},"r":90,"t":0,"bt":[{"c":0,"k":"full-time-asian-handicap-and-over-under"。
我想通过直接输入地址的方式得到,但得不到数据。
所以希望高手指点一下究竟为何得不到数据呢。
浏览器并没有关,session应该有效啊
GetOdds:
_:1348808065295
Tab:Today
UIBetType:ftahou
SportId:1
EventDate:28/Sep/2012
IsFutureDate:false
IsInplay:false
OddsType:2
Response Headersview source
Cache-Control:private
Content-Encoding:gzip
Content-Type:text/plain; charset=utf-8
Date:Fri, 28 Sep 2012 09:46:17 GMT
Server:Microsoft-IIS/7.0
Transfer-Encoding:chunked
Vary:Accept-Encoding
X-AspNet-Version:2.0.50727
X-Powered-By:ASP.NET