getContentLength() 함수가 해당 url에서 받아오는 값들을 byte단위로 리턴해주는 함수가 맞나요?


그리고 맞다면 왜 대부분의 url에서는 -1값을 리턴하는지 궁금합니다.


지금 제가 해볼땐 http://www.daum.net 에서만 값이 나오고 나머지 url은 전부 -1이 출력되네요 


 URL u = new URL("http://www.daum.net);
			URLConnection uc = u.openConnection();
			uc.setConnectTimeout(10000); // Time Out 설정
			int con_length = uc.getContentLength();
			int timeout = uc.getConnectTimeout();
			String con_encoding = uc.getContentEncoding();
			String con_type = uc.getContentType();
			Log.i("URL TimeOut : ", "" + timeout);
			Log.i("URL ContentLength : ", "" + con_length); // 왜 -1이 나오는지
			Log.i("URL ContentEncoding : ", "" + con_encoding); // 왜 null이 나오는지
			Log.i("URL contentType : ", "" + con_type); // 왜 null이 나오는지