IdHTTP1.Get question

Giganews Newsgroups
Subject: IdHTTP1.Get question
Posted by:  Richard Li (ljs_19…@hotmail.com)
Date: Fri, 15 Jul 2005

Hi All,

When I use IdHTTP1.Get to get a partial file from a website, It always
download the whole file for me. Even I assigned
IdHTTP1.Request.ContentRangeStart and IdHTTP1.Request.ContentRangeEnd, same
thing always happens. Here is the code.

        IdHTTP1.Request.ContentRangeStart := CurrentSize;
        IdHTTP1.Request.ContentRangeEnd := CurrentSize+MaxDownloadSize;

        IdHTTP1.Get(aURL, fDownloadStream); //begin download

What's wrong with my code?

Thanks,

Richard Li

Replies