Searched refs:urlc (Results 1 – 1 of 1) sorted by relevance
180 HttpURLConnection urlc = null; in exerciseRemoteHost() local185 urlc = (HttpURLConnection) network.openConnection(url); in exerciseRemoteHost()186 urlc.setConnectTimeout(TIMEOUT_MILLIS); in exerciseRemoteHost()187 urlc.setUseCaches(false); in exerciseRemoteHost()190 urlc.setRequestProperty("Accept-Encoding", "identity"); in exerciseRemoteHost()191 urlc.connect(); in exerciseRemoteHost()192 boolean ping = urlc.getResponseCode() == 200; in exerciseRemoteHost()195 (InputStream) urlc.getContent()); in exerciseRemoteHost()211 if (urlc != null) { in exerciseRemoteHost()212 urlc.disconnect(); in exerciseRemoteHost()