HttpURLConnection connection = null;
URL url = null;
...
connection = (HttpURLConnection)url.openConnection(); connection.setRequestMethod("POST");// connection.setRequestProperty("Accept-Encoding", "identity");connection.setConnectTimeout(5000); connection.connect();InputStream is = connection.getInputStream();//connection.getContentLength();// need setRequestProperty("Accept-Encoding", "identity");
댓글
댓글 쓰기