zhouxuejia

http协议util

address(url地址),str(数据参数)

private static HttpMethod getPostJsonMethodInRequestBody(String address, String str) {

PostMethod post = new PostMethod(address);
post.addRequestHeader("Content-Type", "application/json; charset=utf-8");

post.setRequestBody(str);
return post;

}

分类:

技术点:

相关文章:

  • 2021-12-26
  • 2022-12-23
  • 2021-11-30
  • 2021-07-31
  • 2022-01-08
  • 2022-12-23
  • 2021-09-07
猜你喜欢
  • 2021-11-18
  • 2022-01-07
  • 2022-12-23
  • 2021-11-29
  • 2021-12-26
  • 2021-12-22
  • 2021-12-26
相关资源
相似解决方案