发送http请求,需要携带token数据,创建Header传输

Header header = Header.create();
header.set("Authorization", "Bearer " + token);	  // 携带token
response = Http.get(requestUrl, header, 60 * 1000);
 posted on 2023-01-04 00:02  瓜皮通  阅读(1641)  评论(0编辑  收藏  举报