URLConnection HTTP HEADER PARSE 자바 샘플 코드
조회 1,099 · 댓글 0
URLConnection conn = obj.openConnection();
Map<String, List<String>> map = conn.getHeaderFields();
System.out.println("Printing Response Header...\n");
for (Map.Entry<String, List<String>> entry : map.entrySet()) {
System.out.println("Key : " + entry.getKey()
+ " ,Value : " + entry.getValue());
}
로그인 후 답글을 남길 수 있습니다.