呵呵,这个是有跨域, 异步请求,有点还要带上Referer 头, 希望VBA的同学注意下, finddler 抓包如下
GET http://api.sceea.cn/Handler/GetS ... 9%E5%87%BB&_=12 HTTP/1.1
Host: api.sceea.cn
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Cookie: UM_distinctid=16454cca0a11cb-0786063d79f98e-5b183a13-1fa400-16454cca0a32bb; cookiesession1=34339556CR9DEPKEFCTDGBXVYKSDBEF7; ASP.NET_SessionId=vfqopdz52tlur3biulsawdpu
Referer: www.baidu.com
返回值如下:
- HTTP/1.1 200 OK
- Server: nginx
- Date: Sun, 01 Jul 2018 08:05:23 GMT
- Content-Type: text/plain; charset=utf-8
- Content-Length: 804
- Connection: keep-alive
- Cache-Control: private
- X-AspNet-Version: 4.0.30319
- X-Powered-By: ASP.NET
- X-Frame-Options: SAMEORIGIN
- jQuery160837371150395742_1530432772937({"ResultCode":"00","ResultMsg":"查询成功","QueryKey":"18511002160255","QResults":[{"Code":"XM","Name":"姓 名","QValue":"肖淙元 "},{"Code":"KSH","Name":"考生号","QValue":"18511002160255"},{"Code":"ZKZH","Name":"准考证号","QValue":"100290719"},{"Code":"YW","Name":"语 文","QValue":"84"},{"Code":"SX","Name":"数 学","QValue":"95"},{"Code":"WY","Name":"外 语","QValue":"97"},{"Code":"ZH","Name":"理科综合","QValue":"128"},{"Code":"ZZ_WL","Name":"物 理","QValue":"29.0"},{"Code":"LS_HX","Name":"化 学","QValue":"44.5"},{"Code":"DL_SW","Name":"生 物","QValue":"54.5"},{"Code":"ZF","Name":"总 分","QValue":"404"},{"Code":"CXSJ","Name":"查询时间","QValue":"2018-07-01 16:29"}]})
复制代码
|