|
@@ -1,6 +1,5 @@
|
|
|
package com.core.net.http;
|
|
package com.core.net.http;
|
|
|
|
|
|
|
|
-import android.os.Looper;
|
|
|
|
|
import android.util.Log;
|
|
import android.util.Log;
|
|
|
|
|
|
|
|
import com.common.LogUtil;
|
|
import com.common.LogUtil;
|
|
@@ -34,8 +33,6 @@ import java.net.SocketTimeoutException;
|
|
|
import java.net.URL;
|
|
import java.net.URL;
|
|
|
import java.net.URLDecoder;
|
|
import java.net.URLDecoder;
|
|
|
import java.net.URLEncoder;
|
|
import java.net.URLEncoder;
|
|
|
-import java.security.KeyManagementException;
|
|
|
|
|
-import java.security.NoSuchAlgorithmException;
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
@@ -45,9 +42,6 @@ import java.util.Map;
|
|
|
import java.util.Map.Entry;
|
|
import java.util.Map.Entry;
|
|
|
import java.util.Set;
|
|
import java.util.Set;
|
|
|
|
|
|
|
|
-import javax.net.ssl.HttpsURLConnection;
|
|
|
|
|
-import javax.net.ssl.SSLContext;
|
|
|
|
|
-
|
|
|
|
|
import static com.loopj.android.http.RequestParams.APPLICATION_JSON;
|
|
import static com.loopj.android.http.RequestParams.APPLICATION_JSON;
|
|
|
|
|
|
|
|
|
|
|
|
@@ -127,7 +121,7 @@ public class HttpUtil {
|
|
|
for (Entry<String, Object> entry : entrys) {
|
|
for (Entry<String, Object> entry : entrys) {
|
|
|
if (entry.getValue() != null)
|
|
if (entry.getValue() != null)
|
|
|
nvps.add(new BasicNameValuePair(entry.getKey(),
|
|
nvps.add(new BasicNameValuePair(entry.getKey(),
|
|
|
- URLDecoder.decode(URLEncoder.encode(entry.getValue().toString().replaceAll("%", ""), "utf-8"), "utf-8")));
|
|
|
|
|
|
|
+ URLDecoder.decode(URLEncoder.encode(entry.getValue().toString(), "utf-8"), "utf-8")));
|
|
|
else
|
|
else
|
|
|
nvps.add(new BasicNameValuePair(entry.getKey(), URLDecoder.decode("", "utf-8")));
|
|
nvps.add(new BasicNameValuePair(entry.getKey(), URLDecoder.decode("", "utf-8")));
|
|
|
}
|
|
}
|