一旦检查了服务器端代码..
即将到来意味着改变这样的代码……
url = new URL(urlString);
httpURLConnection = (HttpsURLConnection) url.openConnection();
//httpURLConnection = (HttpURLConnection) url.openConnection();
// HttpsURLConnection.setDefaultHostnameVerifier(new NullHostNameVerifier());
httpURLConnection.setRequestMethod("GET");
httpURLConnection.setRequestProperty("Connection", "keep-alive");
httpURLConnection.setRequestProperty("Content-Type",
"application/json");
httpURLConnection.setRequestProperty("UseCookieContainer", "True");
httpURLConnection.setChunkedStreamingMode(0);
httpURLConnection.connect();
if (httpURLConnection != null) {
respCode = httpURLConnection.getResponseCode();
messageStatus.setResponseCode(respCode);
}
if (respCode == 200) {
InputStream responseStream = httpURLConnection.getInputStream();
messageStatus.setResponseStream(responseStream);
}