HttpURLConnection을 사용하여 다운로드 한 파일의 이름을 가져올 수 있습니까? 나는 URL에서 파일 이름을 추출 할 수 있지만 서버가 어떤 식 으로든 나에게 파일 이름을 보내드립니다 위의 예에서HttpURLConnection 다운로드 파일 이름
URL url = new URL("http://somesite/getFile?id=12345");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("GET");
conn.setAllowUserInteraction(false);
conn.setDoInput(true);
conn.setDoOutput(true);
conn.connect();
InputStream is = conn.getInputStream();
.
환상적인 question.Whenever 우리는 즉시 URL 요청을 행사하는 것은,이 유스 케이스가 ... – sskumar86