Commit 5f9e9e36 authored by 张永's avatar 张永

1

parent 96840933
......@@ -106,6 +106,9 @@ public class HttpUtil {
String requestBody = HttpUtil.toQueryString(parameters, charset);
requestUrl = requestUrl + (requestUrl.contains("?") ? (requestUrl.endsWith("&") ? "" : "&") : "?")
+ requestBody;
if(requestUrl.endsWith("?")) {
requestUrl = requestUrl.substring(0,requestUrl.length()-1);
}
System.out.println(requestUrl);
connection = createConnection(requestUrl, proxy);
connection.setRequestMethod("GET");
......
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