Показать сообщение отдельно
Старый 07.04.2006, 16:24     # 4
Premium
Junior Member
 
Регистрация: 04.04.2003
Сообщения: 181

Premium Популярный человек на этом форумеPremium Популярный человек на этом форумеPremium Популярный человек на этом форумеPremium Популярный человек на этом форумеPremium Популярный человек на этом форумеPremium Популярный человек на этом форумеPremium Популярный человек на этом форуме
Цитата:
traktorist:
Существуют ли проги, которые могут качать файл не с начала, а с конца файла
http://curl.haxx.se/ работает из комстроки. Скачает и из середины файла
Не знаю, поможет ли в твоем случае.
Простой пример:

малюсенький файл http://nncron.ru/download/faq.zip 4318 байт.

Скачиваем байты с начала файла до 2999 и сохраняем как 1.zip
curl -o 1.zip -r 0-2999 http://nncron.ru/download/faq.zip

Скачиваем 1318 байт с конца файла и сохраняем как 2.zip
curl -o 2.zip -r -1318 http://nncron.ru/download/faq.zip

Пишем в командной строке copy /b 1.zip+2.zip faq.zip
и вуаля, faq.zip нормально открывается и распаковывается.
Опций и возможностей у curl много, разбираться долго надо, чтоб освоить.
Цитата:
-r/--range <range>

(HTTP/FTP) Retrieve a byte range (i.e a partial document) from a HTTP/1.1 or FTP server. Ranges can be specified in a number of ways.


0-499 specifies the first 500 bytes

500-999 specifies the second 500 bytes

-500 specifies the last 500 bytes

9500- specifies the bytes from offset 9500 and forward

0-0,-1 specifies the first and last byte only(*)(H)

500-700,600-799 specifies 300 bytes from offset 500(H)

100-199,500-599 specifies two separate 100 bytes ranges(*)(H)


(*) = NOTE that this will cause the server to reply with a multipart response!

You should also be aware that many HTTP/1.1 servers do not have this feature enabled, so that when you attempt to get a range, you'll instead get the whole document.

FTP range downloads only support the simple syntax 'start-stop' (optionally with one of the numbers omitted). It depends on the non-RFC command SIZE.
Premium вне форума