Lines Matching refs:httpConnection
242 HttpURLConnection httpConnection = (HttpURLConnection) conn;
244 httpConnection.getRequestProperties();
249 httpConnection.addRequestProperty("K", "V");
253 assertEquals("HTTP/1.1 200 Fantastic", httpConnection.getHeaderField(null));
255 httpConnection.getHeaderFields().get(null));
256 assertEquals(200, httpConnection.getResponseCode());
257 assertEquals("Fantastic", httpConnection.getResponseMessage());
258 assertEquals(body.length(), httpConnection.getContentLength());
259 assertEquals("ijk", httpConnection.getHeaderField("fgh"));
261 httpConnection.getInputStream(); // the RI doesn't forbid this, but it should
1819 HttpURLConnection httpConnection = (HttpURLConnection) connection;
1820 InputStream in = httpConnection.getResponseCode() < HttpURLConnection.HTTP_BAD_REQUEST
1821 ? connection.getInputStream() : httpConnection.getErrorStream();