| ... | ... | @@ -101,6 +101,7 @@ public class RestClient { |
|
|
|
URLConnection connection = url.openConnection();
|
|
|
|
HttpURLConnection httpConnection = (HttpURLConnection)connection;
|
|
|
|
httpConnection.setRequestProperty("Content-Type", "application/json");
|
|
|
|
requestCount++;
|
|
|
|
|
|
|
|
InputStream response = httpConnection.getInputStream();
|
|
|
|
int responseCode = httpConnection.getResponseCode();
|
| ... | ... | |