HttpRequest调用第三方接口用post发送带header的json数据

https://www.cnblogs.com/codekey/p/4532735.html

用post发送带header的json数据

HttpRequest authRequest = HttpRequest.post("https://xxx").header("Authorization",xxx").contentType("application/json", "UTF-8").send(museumId.toString());

版权声明:本文为WuF_Black原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。