Commit 05ec3254 authored by Quxl's avatar Quxl

x

parent 7815ba36
......@@ -81,9 +81,9 @@ public class HttpUtil {
}
public static String post(String requestUrl, Map<String, Object> parameters, Map<String, String> headers) {
logger.debug(requestUrl);
logger.debug(JSON.toJSONString(parameters));
logger.debug(JSON.toJSONString(headers));
logger.debug("post: " + requestUrl);
logger.debug("parameters: " + JSON.toJSONString(parameters));
logger.debug("headers: " + JSON.toJSONString(headers));
HttpURLConnection connection = null;
try {
String requestBody = toQueryString(parameters);
......@@ -100,7 +100,7 @@ public class HttpUtil {
}
connection.connect();
String result = responseBody(connection);
logger.debug(result);
logger.debug("result: " + result);
return result;
} catch (Exception e) {
throw new RuntimeException(e);
......@@ -111,9 +111,9 @@ public class HttpUtil {
public static String postRaw(String requestUrl, Map<String, Object> parameters, Map<String, String> headers) {
logger.debug(requestUrl);
logger.debug(JSON.toJSONString(parameters));
logger.debug(JSON.toJSONString(headers));
logger.debug("post: " + requestUrl);
logger.debug("parameters: " + JSON.toJSONString(parameters));
logger.debug("headers: " + JSON.toJSONString(headers));
HttpURLConnection connection = null;
OutputStream os = null;
try {
......@@ -134,7 +134,7 @@ public class HttpUtil {
os.write(rawData.getBytes());
os.flush();
String result = responseBody(connection);
logger.debug(result);
logger.debug("result: " + result);
return result;
} catch (Exception e) {
throw new RuntimeException(e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment