Searched refs:conn (Results 1 – 3 of 3) sorted by relevance
71 self.conn = socket.create_connection(73 self.conn.settimeout(timeout)87 self.client = self.conn.makefile(mode="brw")100 if self.conn is not None:101 self.conn.close()102 self.conn = None
487 HttpURLConnection conn = (HttpURLConnection) url.openConnection(); in doPost() local488 conn.setRequestMethod("POST"); in doPost()489 conn.setRequestProperty("User-Agent", "BusinessLogicClient"); in doPost()492 conn.setRequestProperty("Authorization", String.format("Bearer %s", accessToken)); in doPost()495 conn.setDoOutput(true); in doPost()496 try (DataOutputStream wr = new DataOutputStream(conn.getOutputStream())) { in doPost()499 int responseCode = conn.getResponseCode(); in doPost()501 return StreamUtil.getStringFromStream(conn.getInputStream()); in doPost()
292 URLConnection conn = url.openConnection(); in downloadMediaToHost() local293 InputStream in = conn.getInputStream(); in downloadMediaToHost()