Searched refs:urlConnection (Results 1 – 5 of 5) sorted by relevance
161 HttpURLConnection urlConnection = null; in connectToWebsite() local164 urlConnection = (HttpURLConnection) url.openConnection(); in connectToWebsite()165 urlConnection.setConnectTimeout(2000); in connectToWebsite()166 urlConnection.setReadTimeout(2000); in connectToWebsite()167 urlConnection.getResponseCode(); in connectToWebsite()171 if (urlConnection != null) { in connectToWebsite()172 urlConnection.disconnect(); in connectToWebsite()
231 HttpURLConnection urlConnection = null;234 urlConnection = (HttpURLConnection) url.openConnection();235 if (urlConnection.getResponseCode() != 200) {237 + urlConnection.getResponseCode());240 new InputStreamReader(urlConnection.getInputStream()));246 if (urlConnection != null) {247 urlConnection.disconnect();
195 HttpURLConnection urlConnection = null; in connectToWebsite() local198 urlConnection = (HttpURLConnection) url.openConnection(); in connectToWebsite()199 urlConnection.setConnectTimeout(2000); in connectToWebsite()200 urlConnection.setReadTimeout(2000); in connectToWebsite()201 urlConnection.getResponseCode(); in connectToWebsite()205 if (urlConnection != null) { in connectToWebsite()206 urlConnection.disconnect(); in connectToWebsite()
362 HttpURLConnection urlConnection = null; in connectToWebsite() local369 urlConnection = (HttpURLConnection) url.openConnection(); in connectToWebsite()370 urlConnection.setConnectTimeout(CONNECTION_TIMEOUT_MS); in connectToWebsite()371 urlConnection.setReadTimeout(CONNECTION_TIMEOUT_MS); in connectToWebsite()372 final int responseCode = urlConnection.getResponseCode(); in connectToWebsite()379 if (urlConnection != null) { in connectToWebsite()380 urlConnection.disconnect(); in connectToWebsite()
158 val urlConnection = url.openConnection() as HttpURLConnection in <lambda>() constant160 urlConnection.connectTimeout = 2000 in <lambda>()161 urlConnection.readTimeout = 2000 in <lambda>()162 urlConnection.responseCode in <lambda>()166 urlConnection.disconnect() in <lambda>()