Здравствуйте, nextray, Вы писали:
N>Извините чуть чуть подробнее можно?
N>почему то у меня HTTP.HTTPMethod('Get', 'www.yandex.ru') возвращает всю страничку
N>а HTTP.HTTPMethod('Head', 'www.yandex.ru') возвращает пусто.
N>а с Range воообще не понял как отослать запрос. такого идентификатора в HTTPMethod даже не нашел....
Заглянул в исходник юнита и вижу следующее:
published
{:If you need download only part of requested document, here specify
possition of subpart begin. If here 0, then is requested full document.}
property RangeStart: integer read FRangeStart Write FRangeStart;
{:If you need download only part of requested document, here specify
possition of subpart end. If here 0, then is requested document from
rangeStart to end of document. (for broken download restoration,
for example.)}
property RangeEnd: integer read FRangeEnd Write FRangeEnd;
Следовательно:
HTTP.RangeStart := 100;
HTTP.RangeStart := 200;
HTTP.HTTPMethod('Get', 'www.yandex.ru');