Searched refs:urlc (Results 1 – 1 of 1) sorted by relevance
177 HttpURLConnection urlc = null; in exerciseRemoteHost() local182 urlc = (HttpURLConnection) network.openConnection(url); in exerciseRemoteHost()183 urlc.setConnectTimeout(TIMEOUT_MILLIS); in exerciseRemoteHost()184 urlc.setUseCaches(false); in exerciseRemoteHost()187 urlc.setRequestProperty("Accept-Encoding", "identity"); in exerciseRemoteHost()188 urlc.connect(); in exerciseRemoteHost()189 boolean ping = urlc.getResponseCode() == 200; in exerciseRemoteHost()192 (InputStream) urlc.getContent()); in exerciseRemoteHost()208 if (urlc != null) { in exerciseRemoteHost()209 urlc.disconnect(); in exerciseRemoteHost()