|
|
|
@ -192,6 +192,9 @@ public class HttpUtil { |
|
|
|
public static String httpSendPost(String url,String params,Map<String,Object> heardMap){ |
|
|
|
try { |
|
|
|
URL uri = new URL(url); |
|
|
|
log.info("url{}",url); |
|
|
|
log.info("params{}",params); |
|
|
|
log.info("heardMap{}",heardMap); |
|
|
|
HttpURLConnection connection = (HttpURLConnection) uri.openConnection(); |
|
|
|
connection.setRequestMethod("POST"); |
|
|
|
connection.setRequestProperty("Content-Type","application/json"); |
|
|
|
|