HTTPMethod m = useSession.newMethodGet(urlString);
m.setRequestHeader("Accept-Encoding", "gzip,deflate");
m.setRequestHeader("Range", "bytes=" + start + "-" + end);
int status = m.execute();
if ((status != 200) && (status != 206)) {
throw new RuntimeException("failed status = " + status);
}
String charset = m.getResponseCharSet();