Lines Matching refs:con
62 HttpURLConnection con = (HttpURLConnection) url.openConnection(); in requestSignedCertificates() local
63 con.setRequestMethod("POST"); in requestSignedCertificates()
64 con.setDoOutput(true); in requestSignedCertificates()
65 con.setConnectTimeout(TIMEOUT_MS); in requestSignedCertificates()
69 try (OutputStream os = con.getOutputStream()) { in requestSignedCertificates()
73 if (con.getResponseCode() != HttpURLConnection.HTTP_OK) { in requestSignedCertificates()
76 + con.getResponseCode() + "\nRepeated failure count: " + failures); in requestSignedCertificates()
80 BufferedInputStream inputStream = new BufferedInputStream(con.getInputStream()); in requestSignedCertificates()
114 HttpURLConnection con = (HttpURLConnection) url.openConnection(); in fetchGeek() local
115 con.setRequestMethod("POST"); in fetchGeek()
116 con.setConnectTimeout(TIMEOUT_MS); in fetchGeek()
117 con.setDoOutput(true); in fetchGeek()
120 try (OutputStream os = con.getOutputStream()) { in fetchGeek()
124 if (con.getResponseCode() != HttpURLConnection.HTTP_OK) { in fetchGeek()
127 + con.getResponseCode() + "\nRepeated failure count: " + failures); in fetchGeek()
132 BufferedInputStream inputStream = new BufferedInputStream(con.getInputStream()); in fetchGeek()