|
11精币
POST网址:http://vip.yqfpay.com/gameapip/v/groups/selectAll2
用精易网页助手抓包显示需要提供的 协议头 cook:
POST /gameapip/v/groups/selectAll2 HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=utf-8
Referer: http://vip.yqfpay.com/
Accept-Language: zh-Hans-CN,zh-Hans;q=0.5
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
Host: vip.yqfpay.com
Content-Length: 18
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: mtoken=59c98b2b2d133f8adf6578430a5c065f; merchantId=2676; loginAccount=xiaohua
{"groupName":null}
---------------------------------------------------------------------------------------------------------------
Cookie: mtoken=59c98b2b2d133f8adf6578430a5c065f; merchantId=2676; loginAccount=xiaohua
cook里的 mtoken 我已经取到了 后面2个cook 是固定的
网页访问对象 post 方式 给了提交cook 并且附加了 协议头
正常抓包返回数据是:
{"code":200,"msg":"操作成功","data":[{"id":null,"groupsId":"13281","groupName":"测试分组3","groupUrl":"http://zzdaaw.xzdswl.com/gws/checkGroup.html","merchantId":null,"groupStatus":null,"createTime":null,"partitionsNum":null,"groupsIds":null},{"id":null,"groupsId":"13280","groupName":"测试分组2","groupUrl":"http://zzdaaw.xzdswl.com/gws/checkGroup.html","merchantId":null,"groupStatus":null,"createTime":null,"partitionsNum":null,"groupsIds":null},{"id":null,"groupsId":"13279","groupName":"测试分组1","groupUrl":"http://zzdaaw.xzdswl.com/gws/checkGroup.html","merchantId":null,"groupStatus":null,"createTime":null,"partitionsNum":null,"groupsIds":null}]}
但是我返回的 是
{"code":-1,"msg":"accessToken cannot be null.URL[//v/groups/selectAll2]"}
提示 accessToken 不能为空
请大神麻烦
|
|