プロトコルバージョン
788 ワード
URL url = new URL("http://www.mydomain.com/down.zip";);
HttpURLConnection httpConnection=(HttpURLConnection) url.openConnection();
//
httpConnection.setRequestProperty("RANGE","bytes=10000");
//
httpConnection.setRequestProperty("GET","/down.zip HTTP/1.1");
//
httpConnection.setRequestProperty("Accept","image/gif,image/x-xbitmap,application/
msword,*/*");
//
httpConnection.setRequestProperty("Connection","Keep-Alive");
//
InputStream input = httpConnection.getInputStream();