Delphi XE: idHttp & Request.Range, a bug?

时光毁灭记忆、已成空白 提交于 2019-12-04 15:08:30

The Range property is deprecated instead you must use the the Ranges property.

Check this sample

uses
  IdHTTPHeaderInfo; 

var
  Range: TIdEntityRange;
begin
    Range := FHttp.Request.Ranges.Add;
    Range.StartPos := FRangeFrom;
    Range.EndPos := FRangeTo;
    FHttp.Get(FURL, FileStream);
end;

Read this https://forums.embarcadero.com/thread.jspa?messageID=335670

How to set a range in Delphi XE:

idhttp1.Request.Ranges.Add.StartPos:=6000;

It's the same as

idHttp1.Request.Range:='6000-';
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!