chenxinjie005
chenxinjie005
2018-09-07 03:25
采纳率: 50%
浏览 1.5k

httpost获取收货地址出现问题

HttpGet httpget = new HttpGet("http://h5api.m.taobao.com/h5/mtop.taobao.mbis.getdeliveraddrlist/1.0/?jsv=2.4.2&appKey=12574478&t=1536287814387&sign=139f8d844537c8d621d7b97108d31c60&api=mtop.taobao.mbis.getDeliverAddrList&v=1.0&ecode=1&needLogin=true&dataType=jsonp&type=jsonp&callback=mtopjsonp3");
httpget.setHeader("cookie", tmpcookies);
HttpResponse httpresponse1 = httpclient.execute(httpget);
HttpEntity entity1 = httpresponse1.getEntity();

String body1 = EntityUtils.toString(entity1);
System.out.println(body1);

报: mtopjsonp3({"api":"mtop.taobao.mbis.getdeliveraddrlist","data":{},"ret":["FAIL_SYS_TOKEN_EMPTY::令牌为空"],"v":"1.0"})
是token没传吗?

已经登陆进去成功了。

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • showbo
    已采纳

    看返回结果是的。。应该是没传到token,防止crsf的

    点赞 评论
  • chenxinjie005
    chenxinjie005 2018-09-07 03:34

    token=1uF7veo6OUIiPPPAWAmEsLQ 是这个值吗

    点赞 评论

相关推荐