Searched refs:urlConnection (Results 1 – 6 of 6) sorted by relevance
229 HttpURLConnection urlConnection = null; in testForCaptivePortal()232 urlConnection = (HttpURLConnection) mURL.openConnection(); in testForCaptivePortal()233 urlConnection.setInstanceFollowRedirects(false); in testForCaptivePortal()234 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()235 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS); in testForCaptivePortal()236 urlConnection.setUseCaches(false); in testForCaptivePortal()237 urlConnection.getInputStream(); in testForCaptivePortal()238 httpResponseCode = urlConnection.getResponseCode(); in testForCaptivePortal()241 if (urlConnection != null) urlConnection.disconnect(); in testForCaptivePortal()
805 HttpURLConnection urlConnection = null; in sendHttpProbe() local810 urlConnection = (HttpURLConnection) mNetworkAgentInfo.network.openConnection(url); in sendHttpProbe()811 urlConnection.setInstanceFollowRedirects(probeType == ValidationProbeEvent.PROBE_PAC); in sendHttpProbe()812 urlConnection.setConnectTimeout(SOCKET_TIMEOUT_MS); in sendHttpProbe()813 urlConnection.setReadTimeout(SOCKET_TIMEOUT_MS); in sendHttpProbe()814 urlConnection.setUseCaches(false); in sendHttpProbe()819 httpResponseCode = urlConnection.getResponseCode(); in sendHttpProbe()820 redirectUrl = urlConnection.getHeaderField("location"); in sendHttpProbe()828 " headers=" + urlConnection.getHeaderFields()); in sendHttpProbe()840 if (httpResponseCode == 200 && urlConnection.getContentLength() == 0) { in sendHttpProbe()[all …]
201 URLConnection urlConnection = url.openConnection(java.net.Proxy.NO_PROXY); in get() local202 return new String(Streams.readFully(urlConnection.getInputStream())); in get()
209 @Override public CacheRequest put(URI uri, URLConnection urlConnection) throws IOException { in put() argument210 return delegate.put(uri, urlConnection); in put()
135 URLConnection urlConnection = url.openConnection(); in parseUrl() local136 is = new BufferedInputStream(urlConnection.getInputStream()); in parseUrl()138 urlConnection.getInputStream(), "iso-8859-1"), 8); in parseUrl()
117 URLConnection urlConnection = url.openConnection();118 InputStream in = urlConnection.getInputStream();222 HttpsURLConnection urlConnection =224 urlConnection.setSSLSocketFactory(context.getSocketFactory());225 InputStream in = urlConnection.getInputStream();411 HttpsURLConnection urlConnection =413 urlConnection.setHostnameVerifier(hostnameVerifier);414 InputStream in = urlConnection.getInputStream();