2021
06-23
06-23
Java中Https发送POST请求[亲测可用]
1、直接建一个工具类放入即可/***发送https请求共用体*/publicstaticJSONObjectsendPost(Stringurl,Stringparame,Map<String,Object>pmap)throwsIOException,KeyManagementException,NoSuchAlgorithmException,NoSuchProviderException{//请求结果JSONObjectjson=newJSONObject();PrintWriterout=null;BufferedReaderin=null;Stringresult="";URLrealUrl;HttpsURLCon...
继续阅读 >