1
我從網上使用範圍,像這樣抓對象:是Java中用於HttpURLConnections的Range屬性包含還是獨佔?
HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
urlConnection.setRequestProperty("Range", "bytes=0-1000");
// Parallel in different thread
HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
urlConnection.setRequestProperty("Range", "bytes=1000-2000");
// More code that actually collects the data
難道這兩次抓住了第1000個字節?還是上限排他?