项目需要定期与远程服务器同步数据,基于如下代码: 
URL url = new URL("http://test.com/sales/info"); 
connection = (HttpURLConnection) url.openConnection(); 
connection.setRequestMethod("POST"); 
connection.setDoOutput(true); 
connection.setUseCaches(false);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2021-11-20
  • 2022-02-20
  • 2021-11-21
  • 2021-12-02
  • 2022-02-20
猜你喜欢
  • 2021-11-30
  • 2021-12-24
  • 2022-01-07
  • 2021-06-09
  • 2021-08-08
  • 2022-01-29
  • 2021-12-29
相关资源
相似解决方案