After checking the code on the server side. after the onset means changing a code like this ...
url = new URL(urlString);
httpURLConnection = (HttpsURLConnection) url.openConnection();
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);
}
user2801771
source
share