android HttpUrlConnection Request 예제 (1) 썸네일형 리스트형 안드로이드/Android HttpUrlConnection Request 설명 및 설정 하기 (header, get, post, body등.) 안드로이드/Android HttpUrlConnection Request 설명 및 설정 하기 (header, get, post, body등.) HttpUrlConnection Request header 설정하는 방법 입니다. // HttpURLConnection 객체 생성. HttpURLConnection conn = null; // URL 연결 (웹페이지 URL 연결.) conn = (HttpURLConnection)url.openConnection(); // TimeOut 시간 (서버 접속시 연결 시간) conn.setConnectTimeout(CONN_TIMEOUT * 1000); // TimeOut 시간 (Read시 연결 시간) conn.setReadTimeout(READ_TIMEOUT * 1000.. 이전 1 다음